2

.5 Potion Time

2 emeralds3 replies37 views
JGreyK started 5/8/21 10:11 pm
HoboMaggot replied 5/10/2021 7:04 pm
So basically, I have a little game in the works which is multiplayer. I want this levitation effect to last .5 seconds, since 1 is too long. No other effects are on, and I need help making a makeshift fix for multiplayer. I don't know if it's possible, but if anyone's got not too terribly complex ideas (since its a small-ish gimmick) please tell!
Wish it was in the default game.
Oh, yeah, the effect triggers when you enter a certain block, for extra info.
Posted by avatar
JGreyK
Level 17 : Journeyman Crafter
2

Create an account or sign in to comment.

3 replies

1
05/08/2021 11:03 pm
Level 42 : Master Blob
HoboMaggot
HoboMaggot avatar
You can make a scoreboard timer to detect when a half second is up and force remove levitation from the person

  1. Apply levitation and start timer score on the person
  2. When half a second (10 ticks) is up remove leviation
  3. Reset score
1
05/10/2021 2:15 pm
Level 17 : Journeyman Crafter
JGreyK
JGreyK avatar
This may work, but how do I make each individual player have it work?
1
05/10/2021 7:04 pm
Level 42 : Master Blob
HoboMaggot
HoboMaggot avatar
/execute as @a[​tag=<trigger_tag>] run <functions>
/execute as @a[​tag=<trigger_tag>] run tag @s remove <trigger_tag>
1st command will split into commands that do follow my bullet points
2nd command removes the tag so they dont fly up forever
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome