This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I was building a server lobby (not for a server, just for fun) and I wanted to make it a little more fancy. I need the player to receive speed when holding a certain block and teleport when they right-click with another block, is this possible?
Just curious, that's all.
I'm sick of typing the command for right click detection.
Here's the video:
Yes, I know what you're thinking.
Put the carrot on a stick on players' off-hand,
so you can hold a compass on your main hand and can still do this right click detection
Quote from command_block_shadow» You can detect players holding a block and give them speed: /give @p minecraft:stone 1 0 {AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:1,Operation:0,UUIDLeast:383472,UUIDMost:387564}]} To give more speed increse the "Amount".
You can detect players holding a block and give them speed:
/give @p minecraft:stone 1 0 {AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:1,Operation:0,UUIDLeast:383472,UUIDMost:387564}]}
To give more speed increse the "Amount".
Quote from Hoogady» Even amount 1 if five times faster than I need, it needs to be equal to the speed 5 effect.
I was building a server lobby (not for a server, just for fun) and I wanted to make it a little more fancy. I need the player to receive speed when holding a certain block and teleport when they right-click with another block, is this possible?
Just curious, that's all.
I'm sick of typing the command for right click detection.
Here's the video:
Yes, I know what you're thinking.
Put the carrot on a stick on players' off-hand,
so you can hold a compass on your main hand and can still do this right click detection
What if I want to name the block "Speed"? How would I do that?
Just curious, that's all.
Even amount 1 if five times faster than I need, it needs to be equal to the speed 5 effect.
Just curious, that's all.
It's a float, u can use 0.8