premium banner
A mod help server admin set up next day event by commands

Description

This mod add commands that allow server admin or who has permission to set what will happen in the next ingame day. Event will be triggered when the world jump to new day (the same time player wake up from bed).

 

Notice: This will not work properly in singleplayer because event data store server world so it will be erased when you leave the world.

 

Root command: /tmrevent 

Set up event:

/tmrevent <event type> <number player> <event arguments> <is repeat>

<event type>: (giveItemEvent/giveEffectEvent/teleportEvent)

- giveItemEvent: Next day player will get item in pool.

- giveEffectEvent: Next day player will get effect in pool.

- teleportEvent: Players in Overworld will be teleported next day.

<number player> (integer): Number of player will get things in pool, target is random so 1 player can be chosen more than 1 if they're lucky. Input -1 will result all players will be chosen.

<event arguments>:

- giveItemEvent/giveEffectEvent (true/false): Player will get all things in pool if true. Player will get one random thing in pool if false.

- teleportEvent (location): Location players will be teleported to.

<is repeat> (true/false): Event will repeat next day if true. Event will happen only one if false.

Example:

/tmrevent giveItemEvent 3 false true, will create a repetitive event give 3 players 1 random item in item pool.

/tmrevent giveEffectEvent -1 true false, will create an event give all players all effects in effect pool.

/tmrevent teleportEvent 10 15 64 4 true, will create a repetitive event teleport 10 players in Overworld to [15,64,4].

Set up pool:

/tmrevent <add what to pool> <thing to add> <argument 1> <argument 2>

<add what to pool> (addItem/addEffect): Define type of thing to add.

<thing to add> (item/effect): Define Item/Effect to add to pool.

<argument 1> (integer): Stack number of item if <thing to add> is Item. Duration of effect (tick) if <thing to add> is effect.

<argument 2> (integer, only with Effect): Amplifier of effect.

Example:

/tmrevent addEffect minecraft:jump_boost 2000 2, will add jump boost 3 with 2000 ticks duration to effect pool.

/tmrevent addItem minecraft:stick 32, will add stick with stack 32 to item pool.

Util:

/tmrevent <util>

clear: Clear event pool and set everything to default value.

check: Print current event detail. Only player enter command will see.

notify: Notify all players in server tomorrow event.

 

More event types and singleplayer version are planned, release date is unclear.

 

Join me on discord: https://discord.gg/RPhxxWaNmu

My other projects: https://www.curseforge.com/members/ducvn1882/projects

 

Support me on Paypal: