1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RandomTP

Discussion in 'Scripts' started by Sombrerian, Nov 8, 2021.

  1. Sombrerian

    Sombrerian New Member

    Joined:
    Nov 8, 2021
    Messages:
    1
    Likes Received:
    0
    This is a simple, noob-friendly RandomTP Skript.

    Installation process: Download Skript here: https://github.com/SkriptLang/Skript/releases, restart your server, place randomtp.sk into /plugins/Skript/scripts/, type /sk reload randomtp.sk

    This RandomTP Skript comes with many adjustable options such as: Region checks, Blacklisted blocks, Decreased "Donator" cooldowns, Console Post-TP command, Sound effects, Particle effects... and more.

    90% of functionality is adjustable within the configuration section.

    No addons are required to run this Skript.

    I will gladly help you with adjustments or installation through Discord (Sombrerian#0509)
    #
    # Which world should players randomly teleport in?
    # World you specify here is the world players get randomly teleported in, no matter
    # which world they reside in at the time of command execution (including nether, end...)
    world: world
    #
    # Minimum X & Y coordinates.
    # Do not set this value higher than your world border, it will cause issues.
    # Type "/worldborder get" to see your world border size.
    minimumxy: -1000
    #
    # Maximum X & Y coordinates.
    # Do not set this value higher than your world border, it will cause issues.
    # Type "/worldborder get" to see your world border size.
    maximumxy: 1000
    #
    # Specify blocks to avoid from being dropped on. It is highly recommended to not
    # remove default values, unless you want players drowning in lava.
    # Valid blocks that can be blacklisted: https://github.com/SkriptLang/skript-aliases/blob/master/building.sk
    blockblacklist: lava or water or cactus or bamboo or stone or any leaves
    #
    # How many times should we attempt to randomly teleport a player before giving up?
    # This depends on regioncheck and blacklisted blocks. For example, if first location attempt
    # is lava (assuming lava is under "blockblacklist"), then we increase attempt amount by 1 and try
    # to find a new location for the player. Recommended and probably the most appropriate value is 20.
    maxattempts: 20
    #
    # How long should the delay (in ticks) between teleportation attempts be?
    # Lower value means faster teleportation attempts, but possible lag.
    # It is recommended to keep this set to 5 (meaning max 4 attempts per second)
    # 20 ticks = 1 second
    attemptdelay: 5
    #
    # Should we enabled region check? Having this enabled will prevent players from getting dropped
    # onto regions/claims (supports WorldGuard, GriefPrevention & other land claiming plugins...)
    # Valid switches: true/false
    regioncheck: true
    #
    # Toggle whether or not players should have chat feedback when randomly teleported.
    # Valid switches: true/false
    chatfeedback: true
    #
    # Chat feedback message.
    # Only works if "chatfeedback" is set to true
    chatfeedbackmessage: &aYou have been dropped off at %location at player%
    #
    # Console Post-TP command
    # This command gets executed by console 1 second after a player gets randomly teleported.
    # Use %player% if you want to run a command specifically with that player's name. For example,
    # if a player by the name of "Bob" randomly telepots while Post-TP command is set to
    # "/kick %player%", then Bob gets kicked.
    # -
    # Fair warning: You must always put "" around this value!
    posttpcommand: "none"
    #
    # Dedicated command
    # Just in case you don't want players constantly typing /randomtp.
    # This can be set to any non-existent command.
    dedicatedcommand: /play
    #
    # Command cooldown (in seconds)
    # Set this to 0 for no cooldown.
    rtpcooldown: 120
    #
    # Decreased command cooldown (in seconds)
    # Possible donator perk? Players with permission "randomtp.decreasedcooldown" will be
    # cooled down for amount of seconds specified here, instead of regular "rtpcooldown".
    # Set this to 0 for no cooldown.
    rtpdecreasedcooldown: 20
    #
    # Cooldown message.
    # Players will be presented with this message when they try to randomly teleport while on cooldown.
    # Only works if cooldowns are enabled.
    # %{rtpcooldown.%player%}% is the placeholder to show remaining seconds.
    cooldownmessage: &cYou are on cooldown, %{rtpcooldown.%player%}%&c seconds remain!
    #
    # Particle mode
    # Particles are summoned at player's location once successfully randomly teleported.
    # Valid switches: none, ball, splash
    # -
    # none: Disable particles
    # ball: Particles summoned in a 'ball'-a-like shape
    # splash: Particles summoned beneath the player
    # -
    # Fair warning: You must always put "" around this value!
    particlesmode: "ball"
    #
    # Particle effect radius
    # Only applies if you have particles set to "ball" or "splash".
    particleradius: 2
    #
    # Particle type
    # List of valid particles: https://www.digminecraft.com/lists/particle_list_pc.php
    # -
    # Make sure to exclude underscores! For example, if you are setting your particle to
    # enchanted_hit, remove _, having the final value set as: enchanted hit
    particlestype: happy villager
    #
    # Sound effect
    # List of valid sounds: https://www.digminecraft.com/lists/sound_list_pc.php
    # Set this to "none" if you don't wish to use sound effects.
    # -
    # Make sure to reaplce all dots with underscores! For example, if you are setting your sound effect
    # to "BLOCK.BEEHIVE.SHEAR", replace all . with _, having the final value set as: "BLOCK_BEEHIVE_SHEAR"
    # -
    # Fair warning: You must always put "" around this value!
    soundeffect: "ENTITY_ENDER_DRAGON_SHOOT"
    #
    # Permission to use /randomtp (and alias) command.
    cmdpermission: randomtp.use
    #
    # A message that players see when they run the command with no permission.
    nopermission: &cYou need permission randomtp.use to use this command!
    #
    # Should we enable debug mode?
    # This will play unnecessary, but useful chat messages to the player.
    # Valid switches: true/false
    debug: false
     

Share This Page

Loading...