1

How Disable Chorus Fruits?

ThatOneGingerFromSP's Avatar ThatOneGingerFromSP3/24/16 4:35 pm
1 emeralds 2.3k 3
5/24/2016 6:39 am
Lunatricky's Avatar Lunatricky
How can I make it so that you can still eat Chorus Fruits, but it won't teleport you?
Posted by ThatOneGingerFromSP's Avatar
ThatOneGingerFromSP
Level 1 : New Explorer
0

Create an account or sign in to comment.

3

1
03/24/2016 5:13 pm
Level 55 : Grandmaster Dragon
Skitto493
Skitto493's Avatar
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.

/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
03/24/2016 5:31 pm
Level 1 : New Explorer
ThatOneGingerFromSP
ThatOneGingerFromSP's Avatar
Alright, how do I make the clock?
1
05/24/2016 6:39 am
Level 1 : New Crafter
Lunatricky
Lunatricky's Avatar
Set the 1st command block on the chain to "Repeat" and "Allways Active" ?
That should do it I hope.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome