Tewca Posted June 5, 2021 Share Posted June 5, 2021 I need a skript that when a player enters a new world they get a potion effect applied to them. If anyone is willing to do this: the world is called "voidworld_nether", the effect i want is mining fatigue 3 (if not possible just do mining fatigue) and the effect should go off after they leave the world. Link to comment Share on other sites More sharing options...
StarBunnie Posted June 5, 2021 Share Posted June 5, 2021 (edited) I think that should do it: on world change: if player is in world "voidworld_nether": apply mining fatigue 3 to the player for 999 days else: remove mining fatigue from the victim on consume of milk: player is in world "voidworld_nether": apply mining fatigue 3 to the player for 999 days Edited June 5, 2021 by Starshinex3 Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
auraraes Posted June 4, 2023 Share Posted June 4, 2023 I tried this, it didn't work could u help Link to comment Share on other sites More sharing options...
JoshG Posted June 4, 2023 Share Posted June 4, 2023 Hey hey! You seemed to have a small syntax error. In this updated script, the on world change event is triggered when a player changes worlds. It checks if the player is in the "voidworld_nether" world and applies Mining Fatigue 3 to the player for 999 days. If the player changes to any other world, the Mining Fatigue effect is removed from them. The on consume of milk event is triggered when a player drinks milk. If the player is in the "voidworld_nether" world, it applies Mining Fatigue 3 to the player for 999 days. on world change: if world of player is "voidworld_nether": apply mining fatigue 3 to player for 999 days else: remove mining fatigue from player on consume of milk: if world of player is "voidworld_nether": apply mining fatigue 3 to player for 999 days If I helped you at all please consider boosting my account with the follow button! Minehut ♥ [VIP] 12/19/2020 - Present I am either extremely active or not lol. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now