2

.5 Potion Time

-fish's Avatar -fish5/8/21 10:11 pm
5/10/2021 7:04 pm
HoboMaggot's Avatar HoboMaggot
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 -fish's Avatar
-fish
Level 38 : Artisan Fish
11

Create an account or sign in to comment.

3

1
05/08/2021 11:03 pm
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's 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 38 : Artisan Fish
-fish
-fish's Avatar
This may work, but how do I make each individual player have it work?
1
05/10/2021 7:04 pm
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's 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 - 2024
www.planetminecraft.com

Welcome