SHARE
TWEET

Untitled

a guest Apr 23rd, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on sign change:
  2.     if name of player is "Bananentoast15":
  3.         if line 1 of event-block is "dungeonmaster":
  4.             set line 1 of event-block to "&aDungeonMaster"
  5.             set line 2 of event-block to "&80 Spieler"
  6.             set line 4 of event-block to "&7(Rechtsklick)"
  7.             set {lobbyschilder.knockbackffa} to player's location
  8.             send "&aDungeonMaster-Schild erfolgreich erstellt" to player
  9.             stop trigger
  10.  
  11. on right click:
  12.     if player is in world "Lobby-1":
  13.         if line 1 of event-block is "&aDungeonMaster":
  14.             clear player's inventory
  15.             make player execute command "mvtp DungeonMaster"
  16.             set {Game.DungeonMaster.World.%player%} to "lobby"
  17.             stop trigger
  18.    
  19. command /dungeonmaster_creategroup:
  20.     trigger:
  21.         if {Game.DungeonMaster.World.%player%} is "lobby":
  22.             if {Game.DungeonMaster.Group.%player%} is not set:
  23.                 set {Game.DungeonMaster.GroupOwner.%player%} to player
  24.                 set {Game.DungeonMaster.Group.%player%} to "%{Game.DungeonMaster.GroupOwner.%player%}%"
  25.                 send "&aGruppe wurde erstellt" to player
  26.                 stop trigger
  27.             else:
  28.                 send "&cDu bist bereits in einer Gruppe" to player
  29.                 stop trigger
  30.         else:
  31.             send "&cDu kannst hier keine Gruppe erstellen" to player
  32.             stop trigger
  33.    
  34. command /dungeonmaster_deletegroup:
  35.     trigger:
  36.         if {Game.DungeonMaster.World.%player%} is "lobby":
  37.             if {Game.DungeonMaster.Group.%player%} is set:
  38.                 if {Game.DungeonMaster.GroupOwner.%player%} is player:
  39.                     loop all players:
  40.                         if {Game.DungeonMaster.Group.%loop-player%} is player:
  41.                             if loop-player is not player:
  42.                                 make player execute command "dungeonmaster_kickgroupmember %loop-player%"
  43.                     clear {Game.DungeonMaster.GroupOwner.%player%}
  44.                     clear {Game.DungeonMaster.Group.%player%}
  45.                     send "&cGruppe wurde entfernt" to player
  46.                     stop trigger
  47.                 else:
  48.                     send "&cDu bist nicht der Gruppenleader" to player
  49.                     stop trigger
  50.             else:
  51.                 send "&cDu bist in keiner Gruppe" to player
  52.                 stop trigger
  53.         else:
  54.             send "&cDu kannst hier keine Gruppe erstellen" to player
  55.             stop trigger
  56.  
  57. command /dungeonmaster_joingroup [<player>]:
  58.     trigger:
  59.         if {Game.DungeonMaster.World.%player%} is "lobby":
  60.             if {Game.DungeonMaster.Group.%player%} is not set:
  61.                 if arg-1 is set:
  62.                     if arg-1 is {Game.DungeonMaster.GroupOwner.%arg-1%}:
  63.                         set {Game.DungeonMaster.Group.%player%} to arg-1
  64.                         send "&aDu bist %arg-1%'s Gruppe beigetreten" to player
  65.                         send "&aSpieler %player% ist der Gruppe beigetreten" to arg-1
  66.                         stop trigger
  67.                     else:
  68.                         send "&cDiese Gruppe existiert nicht" to player
  69.                         stop trigger
  70.                 else:
  71.                     send "&cDu musst die Gruppe angeben" to player
  72.                     stop trigger
  73.             else:
  74.                 send "&cDu bist bereits in einer Gruppe" to player
  75.                 stop trigger
  76.         else:
  77.             send "&cDu kannst hier keiner Gruppe beireten" to player
  78.             stop trigger
  79.                        
  80. command /dungeonmaster_leavegroup [<player>]:
  81.     trigger:
  82.         if {Game.DungeonMaster.World.%player%} is "lobby":
  83.             if {Game.DungeonMaster.Group.%player%} is set:
  84.                 if arg-1 is set:
  85.                     if arg-1 is {Game.DungeonMaster.Group.%player%}:
  86.                         if player is not {Game.DungeonMaster.GroupOwner.%arg-1%}:
  87.                             clear {Game.DungeonMaster.Group.%arg-1%}
  88.                             send "&aDu bist aus %arg-1%'s Gruppe gegangen" to player
  89.                             stop trigger
  90.                         else:
  91.                             send "&cDu kannst als Leader die Gruppe nicht verlassen" to player
  92.                             stop trigger
  93.                     else:
  94.                         send "&cDu bist nicht in dieser Gruppe" to player
  95.                         stop trigger
  96.                 else:
  97.                     send "&cDu musst die Gruppe angeben" to player
  98.                     stop trigger
  99.             else:
  100.                 send "&cDu bist in keiner Gruppe" to player
  101.                 stop trigger
  102.         else:
  103.             send "&cDu kannst hier keine Gruppe verlassen" to player
  104.             stop trigger
  105.  
  106. command /dungeonmaster_kickgroupmember [<player>]:
  107.     trigger:
  108.         if {Game.DungeonMaster.World.%player%} is "lobby":
  109.             if arg-1 is set:
  110.                 if player is {Game.DungeonMaster.GroupOwner.%{Game.DungeonMaster.Group.%arg-1%}%}:
  111.                     if arg-1 is not player:
  112.                         clear {Game.DungeonMaster.Group.%arg-1%}
  113.                         send "&aSpieler %arg-1% wurde aus der Gruppe entfernt" to player
  114.                         send "&cDu wurdest aus %player%'s Gruppe gekickt" to arg-1
  115.                         stop trigger
  116.                     else:
  117.                         send "&cDu kannst dich nicht selber kicken" to player
  118.                         stop trigger
  119.                 else:
  120.                     send "&cDu kannst Spieler %arg-1% nicht kicken" to player
  121.                     stop trigger
  122.             else:
  123.                 send "&cDu mussst den Namen angeben" to player
  124.                 stop trigger
  125.         else:
  126.             send "&cDu kannst hier keinen Spieler kicken" to player
  127.             stop trigger
  128.  
  129. command /dungeonmaster_menu:
  130.     trigger:
  131.         open chest with 6 rows named "DungeonMaster" to player
  132.         set {_slot} to 0
  133.         loop 54 times:
  134.             format slot {_slot} of player with black glass pane named "&7" to run [make player execute command "dungeonmaster_menu"]
  135.             add 1 to {_slot}
  136.         wait 1 tick
  137.         if {Game.DungeonMaster.Group.%player%} is not set:
  138.             format slot 13 of player with slimeball named "&a&lErstelle eine Gruppe" to run [make player execute command "dungeonmaster_creategroup"]
  139.         if {Game.DungeonMaster.GroupOwner.%player%} is player:
  140.             format slot 13 of player with red dye named "&c&lLöse die Gruppe auf" to run [make player execute command "dungeonmaster_deletegroup"]
  141.         format slot 10 of player with paper named "&8Liste aller Gruppen" to run [make player execute command "dungeonmaster_menu_grouplist"]
  142.         format slot 16 of player with book named "&8Info deiner aktuellen Gruppe" to run [make player execute command "dungeonmaster_menu_groupinfo"]
  143.         stop trigger
  144.        
  145. command /dungeonmaster_menu_grouplist:
  146.     trigger:
  147.         open chest with 6 rows named "&8Gruppenliste" to player
  148.         set {_slot} to 0
  149.         loop 54 times:
  150.             format slot {_slot} of player with black glass pane named "&7" to run [make player execute command "dungeonmaster_menu_grouplist"]
  151.             add 1 to {_slot}
  152.         wait 1 tick
  153.         format slot 0 of player with barrier named "&c&l⬅ &cZurück" to run [make player execute command "dungeonmaster_menu"]
  154.         set {_num} to 9
  155.         loop all players:
  156.             if loop-player is {Game.DungeonMaster.GroupOwner.%loop-player%}:
  157.                 format slot {_num} of player with skull of ("%loop-player%" parsed as offline player) named "&8Klicke um %{Game.DungeonMaster.GroupOwner.%loop-player%}%'s Gruppe beizutreten" to run [make player execute command "dungeonmaster_joingroup Bananentoast15"]
  158.                 add 1 to {_num}
  159.         stop trigger
  160.  
  161. command /dungeonmaster_menu_groupinfo:
  162.     trigger:
  163.         open chest with 6 rows named "&8Gruppeninfo" to player
  164.         set {_slot} to 0
  165.         loop 54 times:
  166.             format slot {_slot} of player with black glass pane named "&7" to run [make player execute command "dungeonmaster_menu_grouplist"]
  167.             add 1 to {_slot}
  168.         wait 1 tick
  169.         format slot 0 of player with barrier named "&c&l⬅ &cZurück" to run [make player execute command "dungeonmaster_menu"]
  170.         if {Game.DungeonMaster.Group.%player%} is set:
  171.             format slot 18 of player with armor stand named "&cGruppenmitglieder:" to run [make player execute command "dungeonmaster_menu_groupinfo"]
  172.             if player is {Game.DungeonMaster.GroupOwner.%player%}:
  173.                 set {_num} to 27
  174.                 loop all players:
  175.                     if {Game.DungeonMaster.Group.%player%} is {Game.DungeonMaster.Group.%loop-player%}:
  176.                         format slot {_num} of player with skull of ("%loop-player%" parsed as offline player) named "&8%loop-player%. Klicke um ihn zu kicken" to run [make player execute command "dungeonmaster_kickgroupmember %loop-player%"]
  177.                         add 1 to {_num}
  178.                 stop trigger
  179.             else:
  180.                 set {_num} to 27
  181.                 loop all players:
  182.                     if {Game.DungeonMaster.Group.%player%} is {Game.DungeonMaster.Group.%loop-player%}:
  183.                         format slot {_num} of player with skull of ("%loop-player%" parsed as offline player) named "&8%loop-player%" to run [make player execute command "dungeonmaster_menu_groupinfo"]
  184.                         add 1 to {_num}
  185.                 stop trigger
  186.         else:
  187.             format slot 22 of player with redstone block named "&cDu bist in keiner Gruppe" to run [make player execute command "dungeonmaster_menu_groupinfo"]
  188.         stop trigger
  189.            
  190. on damage:
  191.     if {Game.DungeonMaster.World.%victim%} is "lobby":
  192.         cancel event
  193.    
  194. on rightclick on a entity:
  195.     if clicked entity's name is "Test":
  196.         make player execute command "dungeonmaster_menu"
  197.         stop trigger
  198.        
  199. on quit:
  200.     clear {Game.DungeonMaster.Group.%player%}
  201.     if player is {Game.DungeonMaster.GroupOwner.%player%}:
  202.         clear {Game.DungeonMaster.GroupOwner.%player%}
  203.         remove player from {Game.DungeonMaster.Groups::*}
  204.        
  205. on inventory click:
  206.     if name of event-item contains "&7":
  207.         cancel event
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top