From 8880f512a31d6b1d0836f2803d800890301bc37c Mon Sep 17 00:00:00 2001 From: StrangerGamer-A Date: Mon, 30 Sep 2024 11:28:32 -0700 Subject: [PATCH] Added 4 Custom Ore Blocks --- .../strangergamer/mccourse/block/ModBlocks.java | 14 ++++++++++++++ .../mccourse/item/ModCreativeModeTabs.java | 4 ++++ .../blockstates/black_opal_block.json | 0 .../blockstates/black_opal_deepslate_ore.json | 7 +++++++ .../mccourse/blockstates/black_opal_end_ore.json | 7 +++++++ .../blockstates/black_opal_nether_ore.json | 7 +++++++ .../mccourse/blockstates/black_opal_ore.json | 7 +++++++ .../blockstates/raw_black_opal_block.json | 0 .../{examplemod => mccourse}/lang/en_us.json | 4 ++++ .../{examplemod => mccourse}/lang/fr_fr.json | 0 .../{examplemod => mccourse}/lang/pt_br.json | 0 .../models/block/black_opal_block.json | 0 .../models/block/black_opal_deepslate_ore.json | 6 ++++++ .../mccourse/models/block/black_opal_end_ore.json | 6 ++++++ .../models/block/black_opal_nether_ore.json | 6 ++++++ .../mccourse/models/block/black_opal_ore.json | 6 ++++++ .../models/block/raw_black_opal_block.json | 0 .../models/item/black_opal.json | 0 .../models/item/black_opal_block.json | 0 .../models/item/black_opal_deepslate_ore.json | 3 +++ .../mccourse/models/item/black_opal_end_ore.json | 3 +++ .../models/item/black_opal_nether_ore.json | 3 +++ .../mccourse/models/item/black_opal_ore.json | 3 +++ .../models/item/raw_black_opal.json | 0 .../models/item/raw_black_opal_block.json | 0 .../textures/block/black_opal_block.png | Bin .../textures/block/black_opal_deepslate_ore.png | Bin 0 -> 688 bytes .../textures/block/black_opal_end_ore.png | Bin 0 -> 713 bytes .../textures/block/black_opal_nether_ore.png | Bin 0 -> 793 bytes .../mccourse/textures/block/black_opal_ore.png | Bin 0 -> 623 bytes .../textures/block/raw_black_opal_block.png | Bin .../textures/item/black_opal.png | Bin .../textures/item/raw_black_opal.png | Bin 33 files changed, 86 insertions(+) rename src/main/resources/assets/{examplemod => mccourse}/blockstates/black_opal_block.json (100%) create mode 100644 src/main/resources/assets/mccourse/blockstates/black_opal_deepslate_ore.json create mode 100644 src/main/resources/assets/mccourse/blockstates/black_opal_end_ore.json create mode 100644 src/main/resources/assets/mccourse/blockstates/black_opal_nether_ore.json create mode 100644 src/main/resources/assets/mccourse/blockstates/black_opal_ore.json rename src/main/resources/assets/{examplemod => mccourse}/blockstates/raw_black_opal_block.json (100%) rename src/main/resources/assets/{examplemod => mccourse}/lang/en_us.json (53%) rename src/main/resources/assets/{examplemod => mccourse}/lang/fr_fr.json (100%) rename src/main/resources/assets/{examplemod => mccourse}/lang/pt_br.json (100%) rename src/main/resources/assets/{examplemod => mccourse}/models/block/black_opal_block.json (100%) create mode 100644 src/main/resources/assets/mccourse/models/block/black_opal_deepslate_ore.json create mode 100644 src/main/resources/assets/mccourse/models/block/black_opal_end_ore.json create mode 100644 src/main/resources/assets/mccourse/models/block/black_opal_nether_ore.json create mode 100644 src/main/resources/assets/mccourse/models/block/black_opal_ore.json rename src/main/resources/assets/{examplemod => mccourse}/models/block/raw_black_opal_block.json (100%) rename src/main/resources/assets/{examplemod => mccourse}/models/item/black_opal.json (100%) rename src/main/resources/assets/{examplemod => mccourse}/models/item/black_opal_block.json (100%) create mode 100644 src/main/resources/assets/mccourse/models/item/black_opal_deepslate_ore.json create mode 100644 src/main/resources/assets/mccourse/models/item/black_opal_end_ore.json create mode 100644 src/main/resources/assets/mccourse/models/item/black_opal_nether_ore.json create mode 100644 src/main/resources/assets/mccourse/models/item/black_opal_ore.json rename src/main/resources/assets/{examplemod => mccourse}/models/item/raw_black_opal.json (100%) rename src/main/resources/assets/{examplemod => mccourse}/models/item/raw_black_opal_block.json (100%) rename src/main/resources/assets/{examplemod => mccourse}/textures/block/black_opal_block.png (100%) create mode 100644 src/main/resources/assets/mccourse/textures/block/black_opal_deepslate_ore.png create mode 100644 src/main/resources/assets/mccourse/textures/block/black_opal_end_ore.png create mode 100644 src/main/resources/assets/mccourse/textures/block/black_opal_nether_ore.png create mode 100644 src/main/resources/assets/mccourse/textures/block/black_opal_ore.png rename src/main/resources/assets/{examplemod => mccourse}/textures/block/raw_black_opal_block.png (100%) rename src/main/resources/assets/{examplemod => mccourse}/textures/item/black_opal.png (100%) rename src/main/resources/assets/{examplemod => mccourse}/textures/item/raw_black_opal.png (100%) diff --git a/src/main/java/net/strangergamer/mccourse/block/ModBlocks.java b/src/main/java/net/strangergamer/mccourse/block/ModBlocks.java index 249186a..4496c05 100644 --- a/src/main/java/net/strangergamer/mccourse/block/ModBlocks.java +++ b/src/main/java/net/strangergamer/mccourse/block/ModBlocks.java @@ -1,8 +1,10 @@ package net.strangergamer.mccourse.block; +import net.minecraft.util.valueproviders.UniformInt; import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.Item; import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.block.DropExperienceBlock; import net.minecraft.world.level.block.state.BlockBehaviour; import net.neoforged.bus.api.IEventBus; import net.neoforged.neoforge.registries.DeferredBlock; @@ -20,6 +22,18 @@ public class ModBlocks { () -> new Block(BlockBehaviour.Properties.of().strength(4f).requiresCorrectToolForDrops())); public static final DeferredBlock RAW_BLACK_OPAL_BLOCK = registerBlock("raw_black_opal_block", () -> new Block(BlockBehaviour.Properties.of().strength(4f).requiresCorrectToolForDrops())); + public static final DeferredBlock BLACK_OPAL_ORE = registerBlock("black_opal_ore", + () -> new DropExperienceBlock(UniformInt.of(2, 5), + BlockBehaviour.Properties.of().strength(4f).requiresCorrectToolForDrops())); + public static final DeferredBlock BLACK_OPAL_DEEPSLATE_ORE = registerBlock("black_opal_deepslate_ore", + () -> new DropExperienceBlock(UniformInt.of(3, 6), + BlockBehaviour.Properties.of().strength(6f).requiresCorrectToolForDrops())); + public static final DeferredBlock BLACK_OPAL_END_ORE = registerBlock("black_opal_end_ore", + () -> new DropExperienceBlock(UniformInt.of(3, 8), + BlockBehaviour.Properties.of().strength(5f).requiresCorrectToolForDrops())); + public static final DeferredBlock BLACK_OPAL_NETHER_ORE = registerBlock("black_opal_nether_ore", + () -> new DropExperienceBlock(UniformInt.of(1, 7), + BlockBehaviour.Properties.of().strength(3f).requiresCorrectToolForDrops())); private static DeferredBlock registerBlock(String name, Supplier block) { DeferredBlock toReturn = BLOCKS.register(name, block); diff --git a/src/main/java/net/strangergamer/mccourse/item/ModCreativeModeTabs.java b/src/main/java/net/strangergamer/mccourse/item/ModCreativeModeTabs.java index 3a4e27f..d8ed8d0 100644 --- a/src/main/java/net/strangergamer/mccourse/item/ModCreativeModeTabs.java +++ b/src/main/java/net/strangergamer/mccourse/item/ModCreativeModeTabs.java @@ -24,6 +24,10 @@ public class ModCreativeModeTabs { pOutput.accept(ModItems.RAW_BLACK_OPAL); pOutput.accept(ModBlocks.BLACK_OPAL_BLOCK); pOutput.accept(ModBlocks.RAW_BLACK_OPAL_BLOCK); + pOutput.accept(ModBlocks.BLACK_OPAL_ORE); + pOutput.accept(ModBlocks.BLACK_OPAL_DEEPSLATE_ORE); + pOutput.accept(ModBlocks.BLACK_OPAL_END_ORE); + pOutput.accept(ModBlocks.BLACK_OPAL_NETHER_ORE); }).build()); diff --git a/src/main/resources/assets/examplemod/blockstates/black_opal_block.json b/src/main/resources/assets/mccourse/blockstates/black_opal_block.json similarity index 100% rename from src/main/resources/assets/examplemod/blockstates/black_opal_block.json rename to src/main/resources/assets/mccourse/blockstates/black_opal_block.json diff --git a/src/main/resources/assets/mccourse/blockstates/black_opal_deepslate_ore.json b/src/main/resources/assets/mccourse/blockstates/black_opal_deepslate_ore.json new file mode 100644 index 0000000..928b22b --- /dev/null +++ b/src/main/resources/assets/mccourse/blockstates/black_opal_deepslate_ore.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "mccourse:block/black_opal_deepslate_ore" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/mccourse/blockstates/black_opal_end_ore.json b/src/main/resources/assets/mccourse/blockstates/black_opal_end_ore.json new file mode 100644 index 0000000..3db89f5 --- /dev/null +++ b/src/main/resources/assets/mccourse/blockstates/black_opal_end_ore.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "mccourse:block/black_opal_end_ore" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/mccourse/blockstates/black_opal_nether_ore.json b/src/main/resources/assets/mccourse/blockstates/black_opal_nether_ore.json new file mode 100644 index 0000000..ad2a43c --- /dev/null +++ b/src/main/resources/assets/mccourse/blockstates/black_opal_nether_ore.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "mccourse:block/black_opal_nether_ore" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/mccourse/blockstates/black_opal_ore.json b/src/main/resources/assets/mccourse/blockstates/black_opal_ore.json new file mode 100644 index 0000000..b321ab6 --- /dev/null +++ b/src/main/resources/assets/mccourse/blockstates/black_opal_ore.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "mccourse:block/black_opal_ore" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/examplemod/blockstates/raw_black_opal_block.json b/src/main/resources/assets/mccourse/blockstates/raw_black_opal_block.json similarity index 100% rename from src/main/resources/assets/examplemod/blockstates/raw_black_opal_block.json rename to src/main/resources/assets/mccourse/blockstates/raw_black_opal_block.json diff --git a/src/main/resources/assets/examplemod/lang/en_us.json b/src/main/resources/assets/mccourse/lang/en_us.json similarity index 53% rename from src/main/resources/assets/examplemod/lang/en_us.json rename to src/main/resources/assets/mccourse/lang/en_us.json index 90e7686..d15975e 100644 --- a/src/main/resources/assets/examplemod/lang/en_us.json +++ b/src/main/resources/assets/mccourse/lang/en_us.json @@ -4,6 +4,10 @@ "block.mccourse.black_opal_block": "Block of Black Opal", "block.mccourse.raw_black_opal_block": "Block of Raw Black Opal", + "block.mccourse.black_opal_ore": "Black Opal Ore", + "block.mccourse.black_opal_deepslate_ore": "Black Opal Deepslate Ore", + "block.mccourse.black_opal_end_ore": "Black Opal End Ore", + "block.mccourse.black_opal_nether_ore": "Black Opal Nether Ore", "itemGroup.mccourse.black_opal_items_tab": "MCCourse Additions" } diff --git a/src/main/resources/assets/examplemod/lang/fr_fr.json b/src/main/resources/assets/mccourse/lang/fr_fr.json similarity index 100% rename from src/main/resources/assets/examplemod/lang/fr_fr.json rename to src/main/resources/assets/mccourse/lang/fr_fr.json diff --git a/src/main/resources/assets/examplemod/lang/pt_br.json b/src/main/resources/assets/mccourse/lang/pt_br.json similarity index 100% rename from src/main/resources/assets/examplemod/lang/pt_br.json rename to src/main/resources/assets/mccourse/lang/pt_br.json diff --git a/src/main/resources/assets/examplemod/models/block/black_opal_block.json b/src/main/resources/assets/mccourse/models/block/black_opal_block.json similarity index 100% rename from src/main/resources/assets/examplemod/models/block/black_opal_block.json rename to src/main/resources/assets/mccourse/models/block/black_opal_block.json diff --git a/src/main/resources/assets/mccourse/models/block/black_opal_deepslate_ore.json b/src/main/resources/assets/mccourse/models/block/black_opal_deepslate_ore.json new file mode 100644 index 0000000..d444988 --- /dev/null +++ b/src/main/resources/assets/mccourse/models/block/black_opal_deepslate_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cube_all", + "textures": { + "all": "mccourse:block/black_opal_deepslate_ore" + } +} diff --git a/src/main/resources/assets/mccourse/models/block/black_opal_end_ore.json b/src/main/resources/assets/mccourse/models/block/black_opal_end_ore.json new file mode 100644 index 0000000..ffa51cf --- /dev/null +++ b/src/main/resources/assets/mccourse/models/block/black_opal_end_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cube_all", + "textures": { + "all": "mccourse:block/black_opal_end_ore" + } +} diff --git a/src/main/resources/assets/mccourse/models/block/black_opal_nether_ore.json b/src/main/resources/assets/mccourse/models/block/black_opal_nether_ore.json new file mode 100644 index 0000000..52888a6 --- /dev/null +++ b/src/main/resources/assets/mccourse/models/block/black_opal_nether_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cube_all", + "textures": { + "all": "mccourse:block/black_opal_nether_ore" + } +} diff --git a/src/main/resources/assets/mccourse/models/block/black_opal_ore.json b/src/main/resources/assets/mccourse/models/block/black_opal_ore.json new file mode 100644 index 0000000..57e8e87 --- /dev/null +++ b/src/main/resources/assets/mccourse/models/block/black_opal_ore.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:block/cube_all", + "textures": { + "all": "mccourse:block/black_opal_ore" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/examplemod/models/block/raw_black_opal_block.json b/src/main/resources/assets/mccourse/models/block/raw_black_opal_block.json similarity index 100% rename from src/main/resources/assets/examplemod/models/block/raw_black_opal_block.json rename to src/main/resources/assets/mccourse/models/block/raw_black_opal_block.json diff --git a/src/main/resources/assets/examplemod/models/item/black_opal.json b/src/main/resources/assets/mccourse/models/item/black_opal.json similarity index 100% rename from src/main/resources/assets/examplemod/models/item/black_opal.json rename to src/main/resources/assets/mccourse/models/item/black_opal.json diff --git a/src/main/resources/assets/examplemod/models/item/black_opal_block.json b/src/main/resources/assets/mccourse/models/item/black_opal_block.json similarity index 100% rename from src/main/resources/assets/examplemod/models/item/black_opal_block.json rename to src/main/resources/assets/mccourse/models/item/black_opal_block.json diff --git a/src/main/resources/assets/mccourse/models/item/black_opal_deepslate_ore.json b/src/main/resources/assets/mccourse/models/item/black_opal_deepslate_ore.json new file mode 100644 index 0000000..5e4027e --- /dev/null +++ b/src/main/resources/assets/mccourse/models/item/black_opal_deepslate_ore.json @@ -0,0 +1,3 @@ +{ + "parent": "mccourse:block/black_opal_deepslate_ore" +} diff --git a/src/main/resources/assets/mccourse/models/item/black_opal_end_ore.json b/src/main/resources/assets/mccourse/models/item/black_opal_end_ore.json new file mode 100644 index 0000000..750d5a7 --- /dev/null +++ b/src/main/resources/assets/mccourse/models/item/black_opal_end_ore.json @@ -0,0 +1,3 @@ +{ + "parent": "mccourse:block/black_opal_end_ore" +} \ No newline at end of file diff --git a/src/main/resources/assets/mccourse/models/item/black_opal_nether_ore.json b/src/main/resources/assets/mccourse/models/item/black_opal_nether_ore.json new file mode 100644 index 0000000..e1861cd --- /dev/null +++ b/src/main/resources/assets/mccourse/models/item/black_opal_nether_ore.json @@ -0,0 +1,3 @@ +{ + "parent": "mccourse:block/black_opal_nether_ore" +} \ No newline at end of file diff --git a/src/main/resources/assets/mccourse/models/item/black_opal_ore.json b/src/main/resources/assets/mccourse/models/item/black_opal_ore.json new file mode 100644 index 0000000..0290fd6 --- /dev/null +++ b/src/main/resources/assets/mccourse/models/item/black_opal_ore.json @@ -0,0 +1,3 @@ +{ + "parent": "mccourse:block/black_opal_ore" +} \ No newline at end of file diff --git a/src/main/resources/assets/examplemod/models/item/raw_black_opal.json b/src/main/resources/assets/mccourse/models/item/raw_black_opal.json similarity index 100% rename from src/main/resources/assets/examplemod/models/item/raw_black_opal.json rename to src/main/resources/assets/mccourse/models/item/raw_black_opal.json diff --git a/src/main/resources/assets/examplemod/models/item/raw_black_opal_block.json b/src/main/resources/assets/mccourse/models/item/raw_black_opal_block.json similarity index 100% rename from src/main/resources/assets/examplemod/models/item/raw_black_opal_block.json rename to src/main/resources/assets/mccourse/models/item/raw_black_opal_block.json diff --git a/src/main/resources/assets/examplemod/textures/block/black_opal_block.png b/src/main/resources/assets/mccourse/textures/block/black_opal_block.png similarity index 100% rename from src/main/resources/assets/examplemod/textures/block/black_opal_block.png rename to src/main/resources/assets/mccourse/textures/block/black_opal_block.png diff --git a/src/main/resources/assets/mccourse/textures/block/black_opal_deepslate_ore.png b/src/main/resources/assets/mccourse/textures/block/black_opal_deepslate_ore.png new file mode 100644 index 0000000000000000000000000000000000000000..9ed965864197a26ec8fce2b67d5f98e8b82a5836 GIT binary patch literal 688 zcmV;h0#E&kP)Px%YDq*vR5*=YlTBz7Q51#0NkUW8bkNRBCDYQ>SZKvnTUx=iU{JcSQgBnmg>Hi4 zMqCII5Ujcs7rK+E8^xU>LRYSeQbPR!7p=jT3ZhM#nP=@7WB)SaBF-b}TfTSiJ?EZt zo|4IAJj=2WLQsEf+X0}r_kg_fYi!#=*Hr*Q`FtMRc5s|B0IC}0_UU<)_BO6Rh#`bP z)3k=>dJrX@PI~}`VPIKS1Jd&HN&~B#JwJ)Hta9PgAyhRAK(M7{-;|=bc%Fw4f`x-? zR2M2#Dw~AEO>}hV^z?L7jCSz%$Qj(RYnbOFG%rLQ(;o!GX`#xB9`o3p%hw|Tg<$VM@W&{aZ~ zWnr$T02n`4YaR&?F=x$jW#cnX{xbkLyYdakDWj@UX=5-Rk5BEC3b=dQ0dPLfu=stJ zh_=SB;eINWinLNuT&h(MfJ$YPNF}#1BC7n)t z^55Px%gGod|R5*=YlTSz#Q5?rVv##zuSm`Ch=D=X1{ZS!ep|yg}5m68b-6VoE=@5hw z=Aj~@I@UoV!b`9kR;LhzNQ^QF65E41Dd}#oIF$chu>SQ!9Gu}h6u*yzbucXA<>g8# z8k4PvxI|lAN|(03s`6gNfRqw9pTo3lGIt*%tCxvg=nC&5?l+fg#tEAqO@GDr!C&$4 z3JRqZre)K0^Bv=j=UF)WjQ5%rqKj>Sq)jZPx%(@8`@R5*=olTBz8XBfwSGw!})-^`oL?(8_YNo|2)6vZyfi$MA$a*$_j}PcuEmyO~3C0prZ(Yxuqp`=JNn3DbZ2Hau51=z+vytJxg7s|@+rUW`+_GYr`Yq` z1p=+nQG^-R>#Pr%JoX;O-|yooMRzWT>p1iki|8ogLvfJl>1oD>1}RoYcyamzmYYqC z}z(5jcjeq_d=I7@rPTnNY8UQ1XDY$OReqBv1 z3@NxSN=i0uv#cwgQrNRk*|q$VcDqf+G^sWkSVGWYSt+GIj`h&;48(nPwbs@Pg|&yjWNu z&>G9ODV0j>-F%1}KRiIm&FQUl6j5;9w~w@rO-V^uuM=pUnuR|nDL3xWmCbIzxgKu- X>tQ)R;edf>00000NkvXXu0mjf;J9y< literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/mccourse/textures/block/black_opal_ore.png b/src/main/resources/assets/mccourse/textures/block/black_opal_ore.png new file mode 100644 index 0000000000000000000000000000000000000000..0c7a6aad8bb9b6cd7f9119380a10ba20dae10b36 GIT binary patch literal 623 zcmV-#0+9WQP)Px%DM>^@R5*=&lTS|*Q5400tu+d7Lf=fmF&+OQkzg?X0a*Y-jeGzT6Wy@UnCLgq zo$TE51>74oL5KzyZZxF}lLi(vP!lyIrs$Yf-eMjxP+Aw0_gaYYuIAl&=iGbGJufjk zJKLl!lu~G|0T4oH;jggu90XvxgolmSOkWPfU{ndn)h zk#;D2nY3h+(F)xiH40+dlBdi^5Ci}$Y!$fajGc(haQlgZiG1WQIVW?Ke_N zq?A^J`;@rF4paR;motY^N|6M}gu~S9yF7gS1lM&L*gH#hD?{I#_b8?87M}ZQDp_~m z8WY9`8+#6$KQN{K*W`MI6;>&Ql(OZ-<>M2vyV}}* zsTO(g>nXXR0p{i!i1iIVdmT8ALli}5ty>}