#(person0z) Potion effect when in a world

26 messages · Page 1 of 1 (latest)

real portal
#

Is there a way to give a custom potion effect when in the nether and when they leave the nether then the effect is removed. Also would there be a way to remove the icon and particles of the effect when its active?

runic knotBOT
#

(person0z) Potion effect when in a world

runic knotBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

real portal
#

Please @ when respond

#

Example:

If player in world nether then potion apply levitaiton 2 2(seconds)
loop

agile current
#

!e player changes world

languid cryptBOT
# agile current !e player changes world
Group

Player

Event Lines

player changes world (from <world>) (to <world>)

Triggers

when a player moves to a different world.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.origin_world> returns the WorldTag that the player was previously on.
<context.destination_world> returns the WorldTag that the player is now in.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

agile current
#

!e player joins

languid cryptBOT
# agile current !e player joins
Group

Player

Event Lines

player joins player join

Triggers

when a player joins the server.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.message> returns an ElementTag of the join message.

Determine

ElementTag to change the join message.
"NONE" to cancel the join message.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

agile current
#

!t locationtag.world

languid cryptBOT
narrow hare
#

easier just to run it on loop tbh

#

That method definitely works and is a bit more efficient, but you'd have to cover a lot of edge cases

#

I'd typically just use a time event and loop through online players

agile current
#

@real portal

frank ocean
#

I.e. what you'd have in a time event loop but only run it when relevant

brisk sinew
#

Can't you basically make effects infinite in the latest version of MC?

elder spade
#

!c cast

languid cryptBOT
# elder spade !c cast
Group

entity

Syntax

cast [<effect>] (remove) (duration:<value>) (amplifier:<#>) (<entity>|...) (no_ambient) (hide_particles) (no_icon) (no_clear)

Short Description

Casts a potion effect to a list of entities.

Description

Casts or removes a potion effect to or from a list of entities.

The effect type must be from https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html.

If you don't specify a duration, it defaults to 60 seconds.
An infinite duration will apply an infinite duration potion effect, refer to !objecttype DurationTag for more details.

The amplifier is how many levels to *add* over the normal level 1.
If you don't specify an amplifier level, it defaults to 1...

frank ocean
#

Not basically, you can make actual infinite effects

elder spade
#

If you don't specify a duration, it defaults to 60 seconds. An infinite duration will apply an infinite duration potion effect

#

iirc it's just duration:infinite?

lucid heartBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@real portal