From fd080d8e3053abcb6b9ae537e429557070a03747 Mon Sep 17 00:00:00 2001 From: dragonruler1000 Date: Mon, 12 May 2025 21:18:26 -0500 Subject: [PATCH] Updated recipe for dust and changed texture. Also trying to get Subtle Knife to work. --- gradle.properties | 2 +- .../hdm_mod/item/custom/SubtleKnife.java | 10 +++++++--- .../assets/hdm_mod/textures/item/dust.png | Bin 191 -> 380 bytes .../assets/hdm_mod/textures/item/dust.png.pxo | Bin 0 -> 879 bytes .../resources/data/hdm_mod/recipes/dust.json | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 src/main/resources/assets/hdm_mod/textures/item/dust.png.pxo diff --git a/gradle.properties b/gradle.properties index 1f46b6c..e005d87 100644 --- a/gradle.properties +++ b/gradle.properties @@ -38,7 +38,7 @@ mod_name=Hdm Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=1.0 +mod_version=1.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/us/minecraftchest2/hdm_mod/item/custom/SubtleKnife.java b/src/main/java/us/minecraftchest2/hdm_mod/item/custom/SubtleKnife.java index b39674f..d8a8c66 100644 --- a/src/main/java/us/minecraftchest2/hdm_mod/item/custom/SubtleKnife.java +++ b/src/main/java/us/minecraftchest2/hdm_mod/item/custom/SubtleKnife.java @@ -1,5 +1,7 @@ package us.minecraftchest2.hdm_mod.item.custom; +import jdk.nashorn.internal.ir.Block; +import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemUseContext; @@ -18,12 +20,14 @@ public class SubtleKnife extends Item { @Override public ActionResultType onItemUseFirst(ItemStack stack, ItemUseContext context) { World world = context.getWorld(); +// BlockPos pos = + PlayerEntity player = context.getPlayer(); - if(!world.isRemote) { - BlockPos another_pos; - + if(world.isRemote) { +// world.setBlockState() } return super.onItemUseFirst(stack, context); } + } diff --git a/src/main/resources/assets/hdm_mod/textures/item/dust.png b/src/main/resources/assets/hdm_mod/textures/item/dust.png index 24181098ad8dc82e9dadd2caeb7925aa3eb677bb..44de25c3ff727e8ca7437b7bc203c72d8a6dd635 100644 GIT binary patch delta 353 zcmV-n0iOQ90sI1xB!2;OQb$4nuFf3k0003tNklZ$b+I;0C9gX@(XntwF|K&BHE%!`vr0X1oz7p_-wt8V=izO>PWM!OcFKNwTEx!Ow--iFJi48F7h zSU4{2S_EI(7-kfiPH6-M7n zn$1siq2WuLc3LgM!g1+!Jq$CtIp%Qc1PnHBY;?aufC9*q!Z25Ge=r6T02pSJ#>;4} z1z_*D>wej|*u))99o{F-_9BiN>>BMP{DbogVD@_*0GESk00000NkvXXu0mjfjHaA^ delta 163 zcmV;U09^n40>1%}B!7lUL_t(I%VS^|-k{Dy@jnQYt@-sTzyJUD#F1_YNCQaY&nt7l z^p--0|527Q|H;w}as`M@lp!$9FpTU1kQ`n^V17on8KeQkM`rhh>0vhnW;-n4&YXX zw4C?SC7Uh$KimEulyLK%5@xco_iag`_y5|WSth*FJq?DF-j$S}7cEJx@;QTPH#FEmbUO!O#@Gsw#)C{GgthiI=`~1n)Z8p zGivj29DO^labrYLN5GTJeaWUe;_J4r6$$Hp9J^zESE=h>jUC;WRuxO!cp>=DYwoS% zeXCD~G*7(ad~l&+Z0|poP_rD}*Nd|*&R@7<<42WmuV$SxX!NaI_UdMIl*HNkC9JDs zOtOB3om`g{vH#GtI9;ntLQk#EE4ci=@Ts0b{F@Hj0*-ZyQ;IZ?75O(E7rW~EhwtVA z)%z#5e`6F5YO69Xf7&X0RVB$Q=+2`;uQQ*gPEncr{&=;_`;AlQ>S<+1@N+)37M#K7 z$ZFH~W5U0lDVtthWwia>`KDZ%@7eRJIgIt!9{W7WtXgtza&W(j0&DB6znXhr2S305 zmpuR_D$f7jvbF&j1q>_<4AMXq?9hsuIc$ zolz8NQ>YYRyV;zlzOk?)hi~Pt7rYFp4)1->bcq@0U|=$0P{!f#%)FG$