Skip to content

Commit

Permalink
Big Swords
Browse files Browse the repository at this point in the history
  • Loading branch information
Starexify committed Aug 12, 2024
1 parent e0ced3a commit b4212d7
Show file tree
Hide file tree
Showing 38 changed files with 497 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "big_swords:block/livingmetal_block"
}
}
}
3 changes: 3 additions & 0 deletions src/generated/resources/assets/big_swords/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"big_swords.creativetab": "Big Swords R",
"block.big_swords.livingmetal_block": "Livingmetal Block",
"item.big_swords.diamond_big_sword": "Diamond Big Sword",
"item.big_swords.ender_big_sword": "Ender Big Sword",
"item.big_swords.ender_upgrade_smithing_template": "Smithing Template",
"item.big_swords.giant_blaze_rod": "Giant Blaze Rod",
"item.big_swords.giant_livingmetal_handle": "Giant Livingmetal Handle",
"item.big_swords.giant_wooden_stick": "Giant Wooden Stick",
"item.big_swords.golden_big_sword": "Golden Big Sword",
"item.big_swords.iron_big_sword": "Iron Big Sword",
"item.big_swords.livingmetal_ingot": "Livingmetal Ingot",
"item.big_swords.netherite_big_sword": "Netherite Big Sword",
"item.big_swords.obsidian_big_sword": "Obsidian Big Sword",
"item.big_swords.patchwork_big_sword": "Patchwork Big Sword",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "big_swords:block/livingmetal_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "big_swords:item/giant_livingmetal_handle"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "big_swords:block/livingmetal_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "big_swords:item/livingmetal_ingot"
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_netherite_ingot": {
"has_netherite_block": {
"conditions": {
"items": [
{
"items": "minecraft:netherite_ingot"
"items": "minecraft:netherite_block"
}
]
},
Expand All @@ -21,7 +21,7 @@
"requirements": [
[
"has_the_recipe",
"has_netherite_ingot"
"has_netherite_block"
]
],
"rewards": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_livingmetal_ingot": {
"conditions": {
"items": [
{
"items": "big_swords:livingmetal_ingot"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "big_swords:giant_livingmetal_handle"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_livingmetal_ingot"
]
],
"rewards": {
"recipes": [
"big_swords:giant_livingmetal_handle"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_iron_ingot": {
"conditions": {
"items": [
{
"items": "minecraft:iron_ingot"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "big_swords:livingmetal_ingot"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_iron_ingot"
]
],
"rewards": {
"recipes": [
"big_swords:livingmetal_ingot"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_livingmetal_block": {
"conditions": {
"items": [
{
"items": "big_swords:livingmetal_block"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "big_swords:livingmetal_ingot_from_livingmetal_block"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_livingmetal_block"
]
],
"rewards": {
"recipes": [
"big_swords:livingmetal_ingot_from_livingmetal_block"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "big_swords:livingmetal_block"
}
],
"rolls": 1.0
}
],
"random_sequence": "big_swords:blocks/livingmetal_block"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"key": {
"#": {
"item": "minecraft:stick"
},
"L": {
"item": "big_swords:livingmetal_ingot"
}
},
"pattern": [
" L#",
"L#L",
"#L "
],
"result": {
"count": 1,
"id": "big_swords:giant_livingmetal_handle"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"ingredients": [
{
"item": "minecraft:soul_sand"
},
{
"item": "minecraft:iron_ingot"
},
{
"item": "minecraft:ghast_tear"
}
],
"result": {
"count": 1,
"id": "big_swords:livingmetal_ingot"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": "minecraft:crafting_shapeless",
"category": "misc",
"group": "livingmetal_ingot",
"ingredients": [
{
"item": "big_swords:livingmetal_block"
}
],
"result": {
"count": 9,
"id": "big_swords:livingmetal_ingot"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "minecraft:smithing_transform",
"addition": {
"item": "minecraft:netherite_ingot"
"item": "minecraft:netherite_block"
},
"base": {
"item": "big_swords:diamond_big_sword"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parent": "minecraft:recipes/root",
"criteria": {
"has_livingmetal_ingot": {
"conditions": {
"items": [
{
"items": "big_swords:livingmetal_ingot"
}
]
},
"trigger": "minecraft:inventory_changed"
},
"has_the_recipe": {
"conditions": {
"recipe": "minecraft:livingmetal_block"
},
"trigger": "minecraft:recipe_unlocked"
}
},
"requirements": [
[
"has_the_recipe",
"has_livingmetal_ingot"
]
],
"rewards": {
"recipes": [
"minecraft:livingmetal_block"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "minecraft:crafting_shaped",
"category": "building",
"key": {
"#": {
"item": "big_swords:livingmetal_ingot"
}
},
"pattern": [
"###",
"###",
"###"
],
"result": {
"count": 1,
"id": "big_swords:livingmetal_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"big_swords:livingmetal_block"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
"big_swords:livingmetal_block"
]
}
2 changes: 2 additions & 0 deletions src/main/java/net/nova/big_swords/BigSwordsR.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.minecraft.resources.ResourceLocation;
import net.nova.big_swords.data.DataGenerators;
import net.nova.big_swords.init.BSBlocks;
import net.nova.big_swords.init.BSItems;
import net.nova.big_swords.init.CreativeTab;
import org.slf4j.Logger;
Expand All @@ -20,6 +21,7 @@ public class BigSwordsR {
public BigSwordsR(IEventBus bus) {
CreativeTab.CREATIVE_TAB.register(bus);
BSItems.ITEMS.register(bus);
BSBlocks.BLOCKS.register(bus);

bus.addListener(DataGenerators::gatherData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ protected void registerModels() {
// Sticks
basicItem(BSItems.GIANT_WOODEN_STICK.get());
basicItem(BSItems.GIANT_BLAZE_ROD.get());
basicItem(BSItems.GIANT_LIVINGMETAL_HANDLE.get());

// Livingmetal Models
basicItem(BSItems.LIVINGMETAL_INGOT.get());

// Ender Upgrade
basicItem(BSItems.ENDER_UPGRADE_SMITHING_TEMPLATE.get());
Expand Down
Loading

0 comments on commit b4212d7

Please sign in to comment.