Tiny Samples To Start From

Scripts that are ready to be just dropped-in and used! Exclusively high-quality scripts selected by the Denizen team.
Post Reply
User avatar
mcmonkey
Site Admin
Site Admin
Posts: 299
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Tiny Samples To Start From

Post by mcmonkey » January 30th, 2021, 6:38 am

This is a collection of small/simple sample scripts that do little things, and aren't necessarily perfect or clearly documented.
Some of these you can drop in and use straight away, but most are meant for the assumption that will you use them as a basis and tweak them further from there - at the very least, doing a big of configuration.

Fake-Sneak Examples
NPC Names automatically go into sneak when you're out of range: https://one.denizenscript.com/haste/80162
NPC Names that are always fake-sneaking: https://one.denizenscript.com/haste/80163
(the majority of these scripts' length is just compensating for hologram name stuff)

General
Smart daily auto-restart (will restart at a scheduled time each day, but give a 30 minute warning period, with increasingly strong warnings, but will restart early if the server is empty ... also prevents players from joining the server at the last minute, also will kick the players a second before shutdown to be safe): https://one.denizenscript.com/haste/80291
Auto-saver (every server should have some auto-saving happening... it's not strictly necessary, but it helps reduce the impact of crashes - this sample script saves Citizens saves and some Denizen data every 30 minutes... you'll want to toss in any other auto saves you need, possibly some - wait 1s lines or similar between them as well): https://one.denizenscript.com/haste/80168
No quick-join (will force players to wait 10 seconds after initial server start before they're able to join, with a pleasant "server is still loading" message - handy to allow things like discord to load) https://paste.denizenscript.com/View/80568
Denizen lead developer. On Discord as mcmonkey#6666.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests