##minecraft:tick or namespace:tick only works if I execute those functions
1 messages · Page 1 of 1 (latest)
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
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)
As means it makes it so that the entity is executing the command
not making it the target
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
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?
I don't see what the End being space has to do with using @e instead of @a
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
Yeah you didn't at the at @s like I told you to
It has the same outcome if I do that-...
...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
Show me how you tried it
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
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?
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
Oh--- I understood--
I'm just really confused over datapacks and explanations-- my apologies