##minecraft:tick or namespace:tick only works if I execute those functions

1 messages · Page 1 of 1 (latest)

jade ibexBOT
jade ibexBOT
#

-# (helpers summoned) <@&1166082198152159386> <@&1202694677766348840>

small sleet
#

You probably need to add at @s to your execute commands in the tick function, before the if predicate arguments

#

Also, you should use @a instead of @e to just affect players

wind dawn
#

Still not working. I'm using @e since, for this datapack, I consider the End Dimension as Space

#

And if I understood, at executes the command at the entity position while as makes an entity the target of the command

#

(Sorry if my english is bad)

spring ibex
#

not making it the target

wind dawn
#

I think what's causing the commands in the tick.mcfunction to not execute is the end.json predicate, I tried without that predicate and it executed

small sleet
#

Indeed, and that's why using at here in addition to as is important, so that the predicate is being checked at the entity's position, to ensure they are in the End

#

The predicate itself is fine, so you must not be checking it correctly. Show your new command?

small sleet
wind dawn
#

It didn't change

execute as @e if predicate zaydacoo_end_fix:end unless predicate zaydacoo_end_fix:water_breathing run function zaydacoo_end_fix:damage
execute as @e if predicate zaydacoo_end_fix:end run function zaydacoo_end_fix:effect```

Using at or as with @e or @a has the same effect, although when I execute that function in game, it executes
small sleet
#

Yeah you didn't at the at @s like I told you to

wind dawn
small sleet
#

...yes, @e and @a will appear to have the same effect, because both to affect players, but @a only affects players, which is better for performance than affecting all entities

small sleet
#

You absolutely do need the at @s, so excluding it won't help you. If you're including it correctly and it doesn't work, then we can keep it and move on to identifying other problems, but the problem may be you're including it incorrectly

#

Which I can't tell until I see the command you were trying

wind dawn
#
execute at @a if predicate zaydacoo_end_fix:end unless predicate zaydacoo_end_fix:water_breathing run function zaydacoo_end_fix:damage
execute at @a if predicate zaydacoo_end_fix:end run function zaydacoo_end_fix:effect

As I said, it still doesn't work. Do you need a video for me to prove it?

small sleet
#

Yeah see that's not what I told you to do

#

You need to do execute as @a at @s if predicate ...

#

No, I need you to cut the attitude

#

I am trying to help you and I'd really appreciate if you acted like you actually want help instead of fighting me over every suggestion

wind dawn
#

Oh--- I understood--
I'm just really confused over datapacks and explanations-- my apologies

small sleet
#

And that is okay, but that isn't an excuse to act like an ass at me

#

So thank you for the apology