Started by
JacksonAnimates
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making this mod for a SMP I host. In the mod there's an achievement that requires you to enchant a Netherite hoe. Is there any way to detect if an item has enchantments in a if-do statement? If there is, could you kindly tell me what it is please, it'd be much appreciated.
if provided itemstack is enchanted
etc etc
That didn't work when I tried it.didn't work when i added = true in there either
no not like that, but if Event target entity has ITEM in main inventory AND provided itemstack is enchanted
etc etc
Then it says it doesn't know what provided itemstack is, how do I fix that?
then replace Itemstack with Hoe
just noticed, you didn't select right trigger
if none of that works, new procedure:
Player Tick Update
if item in main hand of event target entity = HOE AND provided itemstack is enchanted
etc etc
...It didn't work, neither method worked ._.
then on second method change itemstack to Item in main hand
That worked! Thank you!
:)
Thats strange, if you have set the procedure in "When item is created" each and everyone of the prcedures should have worked. Well, maybe the first one is the exception.
RexCerv, following the topic Do you know how to replace an item wile is begin enchanted with another one? Example. CustomBook in enchanting table is replaced with CustomBookEnchanted with especific enchantments. Or giving the result of CustomBookEnchanted. I didnt see the enchantment option in the "Recipe"option