1
How Disable Chorus Fruits?
How can I make it so that you can still eat Chorus Fruits, but it won't teleport you?
Create an account or sign in to comment.
3
1
Hmm... let's see here...
Okay, create a scoreboard objective that is the objective stat of using chorus fruit. (I'll be naming it ChorusFruit in my commands)
Now, run these commands in a chain on a clock. Order matters.
Now, have a comparator exiting the latest command block, and then have it lead into another chain:
Just a little thing I whipped up - it has its caveats. I haven't tested it in real MC, so it might not work. The player's screen would briefly flash as they see their teleport location, then get teleported back to their origin. Also: if multiple players use this at the same time, it might bug.
Okay, create a scoreboard objective that is the objective stat of using chorus fruit. (I'll be naming it ChorusFruit in my commands)
Now, run these commands in a chain on a clock. Order matters.
/execute @a[score_ChorusFruit_min=1] ~0 ~0 ~0 /summon ArmorStand ~0 ~0 ~0 {Tags:["ChorusStop"],Marker:1b,Invisible:1,Invulnerable:1,NoBasePlate:1,NoGravity:1}
/execute @e[type=ArmorStand,tag=ChorusStop] ~0 ~0 ~0 /scoreboard players tag @a[c=1,r=2,score_ChorusFruit_min=1] add ChorusTarget
/scoreboard players set @a[score_ChorusFruit_min=1] ChorusFruit 0[
Now, have a comparator exiting the latest command block, and then have it lead into another chain:
/tp @a[tag=ChorusTarget] @e[tag=ChorusStop]
/execute @a[tag=ChorusTarget]] ~0 ~0 ~0 /kill @e[type=ArmorStand,tag=ChorusStop,c=1]
/scoreboard players tag @a[tag=ChorusTarget] remove ChorusTarget
Just a little thing I whipped up - it has its caveats. I haven't tested it in real MC, so it might not work. The player's screen would briefly flash as they see their teleport location, then get teleported back to their origin. Also: if multiple players use this at the same time, it might bug.
1
Alright, how do I make the clock?
1
Set the 1st command block on the chain to "Repeat" and "Allways Active" ?
That should do it I hope.
That should do it I hope.