So i'm remaking some gem from the Bliss SMP and while translating my pack to 1.21.4 the effect that given if the player has a certain gem in offhand stop working, now if a player put 1 of the custom gem they get all the effect even though they ain't holding all of them in offhand, I do not know how to fix it any idea ?
#it work in 1.21.5 but not in 1.21.4
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
Someone will come and help soon!
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1748819682:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
- Judging just by what I see here, doesn't seem like the version should have anything to do with it
- You should be using
if itemsinstead of NBT checks for ease as as well more reliable behavior - Instead of all these @a checks, you should just do a single
execute as @a at @s run function ...in your tick function, moke everything here to a new function, and use just @s in all of these for better performance
so like in my main loop i just do 1 check than to send to another tick.mcfunction
but how do i check with that if it has it in offhand ?
By targeting the offhand slot
?
Try writing execute if items in game to learn the syntax
It should be quite obvious how to check the offhand item
Wait, last question what the name of the slot in 1.21.4
?
The autofill will present you with a list, try looking for it
Or use the wiki to see what all the slot names are/mean
Knowing how to find the answers to things will be a big step in your journey
alr master oogway, thx so much that help !
Question Closed
Your question, #1378866877236908185 (it work in 1.21.5 but not in 1.21.4), was resolved!
Original Message
#1378866877236908185 message
Duration open
24m
Any further messages or reactions will re-open this thread.
Closed for inactivity
This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.
Any further messages or reactions will re-open this thread.