Crate script

Icecapade

Time traveling wizard
Staff member
Helper
Dec 12, 2019
56
10
8
25
Germany
www.icecapa.de

REDIRECT TO RESOURCE: https://forum.denizenscript.com/resources/custom-crates.45/


Hellow Fellows.

This is a crate script. It lets you create crates and keys.
To remove a crate simply break the ender_chest.
You can configure what the crates can drop.
It uses weighted chance, so you can easily use percentages.

The admin player need the permission
Code:
icecapade.crates
. Other players don't need it.
The Syntax for the command is:
Code:
/crates [light/medium/heavy] (key) (<#>)

Optionally specify key to receive a key instead of a crate. Defaults to 8 if no number is given.
If a player places a crate it will act like a normal ender_chest.

Made for Denizen Release 1711+
You find the latest stable releases here: https://ci.citizensnpcs.co/job/Denizen/[/b]

Script:
V1.0.6 https://one.denizenscript.com/haste/71515

old

Screenoreeno:
8KqDrIUHHV.png

Notes:
- [1.0.6] added option to customize chest display names
- [1.0.5] removed object notation in data storage container
- [1.0.5] using maptags for data script
- [1.0.5] shorted the script (used repeat for firework / shortened events / removed redundant defaults)
- [1.0.5] now the right chest will be animated
- [1.0.5] added narration when receiving keys
- [1.0.1] fix firework color (cyan -> aqua) [1.0.1]
 
Last edited:

mcmonkey

Administrator
Staff member
Helper
(Regarding https://one.denizenscript.com/haste/70598 )
- Script contains raw object notation (i@, etc) - get rid of that.
- Script contains yaml_key lists used as maps... use MapTag!
- Duplicate events for light/medium/heavy could be very easily shortened into a single event that parses what type of key it is.
- - animatechest <[enderchest]> close sound:false <player> is rather arbitrary manual specification of defaults