I'm trying to make something constantly bounce off the ground. Here is how I have it set up (BTW, the magma cube is wearing a fire charge with a custom tag of {MotY:0.5d}):
execute as @e[nbt={OnGround:1b},type=magma_cube] at @s store result entity @s Motion[1] double 1 run data get entity @s ArmorItems[3].tag:{MotY:0.5d}
Help would be appreciated. Thanks!
EDIT: Why do I never get replies (or at least very few)?
Wait... Now I just need it to keep its momentum...
But whenever it hits the ground, it snaps to going in the -X direction and/or the -Z direction.
Here are my commands:
execute as @e[nbt={OnGround:1b},type=magma_cube,tag=thrown] at @s store result entity @s Motion[0] double 1 run data get entity @s Motion[0]
execute as @e[nbt={OnGround:1b},type=magma_cube,tag=thrown] at @s store result entity @s Motion[2] double 1 run data get entity @s Motion[2]
Thank you!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to make something constantly bounce off the ground. Here is how I have it set up (BTW, the magma cube is wearing a fire charge with a custom tag of {MotY:0.5d}):
execute as @e[nbt={OnGround:1b},type=magma_cube] at @s store result entity @s Motion[1] double 1 run data get entity @s ArmorItems[3].tag:{MotY:0.5d}
Help would be appreciated. Thanks!
EDIT: Why do I never get replies (or at least very few)?
So, good news and bad news.
The good news is that I figured out how to retrieve the tag by looking on the Minecraft Wiki.
The bad news is that it's still just sliding and making flame particles as if it were constantly hitting the ground.
Here is the new command:
execute as @e[nbt={OnGround:1b},type=magma_cube] at @s store result entity @s Motion[1] double 1 run data get entity @s ArmorItems[3].tag.MotY
please say you can use decimals
oMg I gOt It!!1!1oneone
What I had to do was just change the MotY tag to 1.0d and then change the scale value to 0.5!
Wait... Now I just need it to keep its momentum...
But whenever it hits the ground, it snaps to going in the -X direction and/or the -Z direction.
Here are my commands:
execute as @e[nbt={OnGround:1b},type=magma_cube,tag=thrown] at @s store result entity @s Motion[0] double 1 run data get entity @s Motion[0] execute as @e[nbt={OnGround:1b},type=magma_cube,tag=thrown] at @s store result entity @s Motion[2] double 1 run data get entity @s Motion[2]Thank you!