What Can You Do With Denizen? ----------------------------- ```eval_rst .. contents:: Table of Contents :local: ``` ### Let Me Put It Simply ![](images/throughdenizen.gif) ### What Can An Advanced User Do With Denizen? **What can you do with Denizen... if you're dedicated? Anything you can set your mind to!** - Here's a variety of high quality scripts publicly posted [on the Denizen forum resources section](https://forum.denizenscript.com/resources/categories/denizen-scripts.1/?prefix_id=2) - (Outdated) Here's a region manager that competes with WorldGuard, written as a Denizen script: [Spigot - dRegions](https://www.spigotmc.org/resources/denizen-dregions.26864/) - (Outdated) Here's a script only about 20 lines long that makes it so a torch glows when held in your hand: [Forums - Denizen Torch Light](https://forum.denizenscript.com/viewtopic.php?f=13&t=8) ![](images/torchlight.png) - (Outdated) In the past before I (mcmonkey) created Sentinel, I had written the same basic concept as a fully functional Denizen script: [Old Repo Archive - dSentry](https://one.denizenscript.com/denizen/repo/entry/0) ![](images/dsentry.png) - Or whatever other crazy thing you might imagine. Here's a chest GUI of a keypad to type on: ![](images/bankkeypad.gif) - Not enough for you yet? Need something even more wild and out-there? Weeeelll... here's someone [using a Denizen script to order pizza from within minecraft.](https://www.youtube.com/watch?v=5ml8EKTswu8) ### What Can A Normal User Do With Denizen? **What can you do with Denizen... if you're a more average user? Still quite a lot!** - It's very common to write a variety of basic server utilities in a Denizen script, such as a daily auto-restart which amounts to just a few lines of script. In fact, here's exactly such a script: ```dscript_green daily_autorestart: type: world debug: false events: on system time 01:00: - announce "Server restart in ten minutes!" - wait 5m - announce "Server restart in five minutes!" - wait 2m - announce "Server restart in three minutes!" - wait 1m - announce "Server restart in two minutes!" - wait 1m - announce "Server restart in one minute!" - wait 30s - announce "Server restart in thirty seconds!" - wait 30s - adjust server restart ``` It's that simple! Most of the space usage is simple copy/pasted messages. - Writing quests within Denizen is very popular as well (usually NPC-driven, refer to the [What Can Denizen Do With Citizens?](/guides/background/denizen-citizens) page for more info). - Custom item systems are pretty popular as well. You can write item scripts as simply as this example: ```dscript_green hero_sword: type: item debug: false material: diamond_sword display name: Hero's Sword! lore: - Sword granted only to the greatest of heroes. enchantments: - sharpness:5 ``` You can easily just `- give hero_sword` at any time, and use simple world events to give special properties to your items.