NovaKevin

Hytale Trailer Script

Jan 19th, 2019
1,274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var GameMode = com.hypixel.hytale.protocol.Gamemode;
  2. var Player = com.hypixel.hytale.server.core.entity.entities.Player;
  3.  
  4. exports = {
  5.   onCollide: function(entity)
  6.   {
  7.     if (entity instanceof Player)
  8.     {
  9.       entity.setGameMode(GameMode.Adventure); // Sets the mode to adventure
  10.     }
  11.   }
  12. }
  13.  
  14. // www.hytale.com/supersecretpage
  15.  
  16. exports = {
  17.   onCollide: function(entity)
  18.   {
  19.     if (entity instanceof Player)
  20.     {
  21.       entity.teleport(0, 0, 0); // Moves player to origin
  22.     }
  23.   }
  24. }
  25.  
  26. // www.hytale.com/supersecretpage
Advertisement
Add Comment
Please, Sign In to add comment