mojira.dev
MC-123958

Certain commands within functions don't work on things in other dimensions

from main tagged with #tick:
#death and respawn effects
execute as @a[tag=

[media]

{DeathTime:0s}] at @s run function g3mine:main/deatheffect
execute as @a[tag=died,nbt={DeathTime:0s}] at @s run function g3mine:main/respawn
#height as score and test voidfall
execute as @a store result score @s height run data get entity @s Pos[1]
execute as @a[scores={height=..-64}] at @s run function g3mine:main/voidfall

Voidfall:
teleport @p 0 255 0
setblock 0 255 0 end_portal
say i fell into the void somehow
effect give g3david saturation 255 1 true
tag @s add voidfall
attaching respawn and deatheffect, too long to paste here,as well as the main and voidfall

Environment

i've got a function that teleports players to their bed when they fall into the void in any dimension, most useful in the end for obvious reasons, also, when they die their items are to be have their nbt's modified: i kill their motion, make them glow, turn off their gravity, make them invulnerable and never despawn... and this works great in the overworld, but no other dimension, included are the main function that calls the others and the functions they call

the voidfall is running because its properly executing the say command but nothing else

Linked issues

Attachments

Comments 1

Please do not mark unreleased versions as affected.
You don't have access to them yet.

migrated

(Unassigned)

Unconfirmed

Minecraft 18w01a

Retrieved