#World Stage

10 messages · Page 1 of 1 (latest)

rancid sable
#

How do I go about implementing a stage but for the world, and by extension, all players - online, offline, and future? I'm trying to create a mechanic where all players receive an advancement when 5 mobs die: Mutant Zombie, Creeper, Enderman, & Skeleton, + a Ravenger. I can handle this once I figure out how to make a stage but for the whole world.

gritty drumBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

rancid sable
#

Also this doesnt necessarily need to be a stage if I can replicate something similar with something else.

rancid sable
#

Bumping in case anyone has a solution.

thick marsh
# rancid sable Bumping in case anyone has a solution.

you can add server persistent data via server.persistentData and set either a value or a compound tag there js ServerEvents.loaded(event => { // setting basic value example event.server.persistentData.SomeStage = 1 // setting more complex compound stage example event.server.persistentData.SomeCompoundTagStage = { RavagerKills: 1, SomeOtherKills: 1 } // reading it from anywhere server is available if (event.server.persistentData.SomeCompoundTagStage.RavagerKills == 1) { console.log("1 Ravager kill") } })

rancid sable
#

oh, this is neat. ill look into this once i can find time within tmrw or the day after :D

rancid sable
#

it works, neat!

subtle muralBOT
#

Paste version of dimension_block.js from @rancid sable

rancid sable
#

this should probably be more optimized... but im lazy :P