#it work in 1.21.5 but not in 1.21.4

1 messages · Page 1 of 1 (latest)

frosty aspen
#

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 ?

formal abyssBOT
#

<@&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

frosty aspen
viscid plank
#
  1. Judging just by what I see here, doesn't seem like the version should have anything to do with it
  2. You should be using if items instead of NBT checks for ease as as well more reliable behavior
  3. 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
frosty aspen
#

so like in my main loop i just do 1 check than to send to another tick.mcfunction

frosty aspen
viscid plank
#

By targeting the offhand slot

frosty aspen
#

?

viscid plank
#

Try writing execute if items in game to learn the syntax

#

It should be quite obvious how to check the offhand item

frosty aspen
#

WAIT I JUST TRIED ITT

#

IT SO MUCH EAISER...

frosty aspen
#

?

viscid plank
#

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

frosty aspen
formal abyssBOT
#
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

formal abyssBOT
#
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.