Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- set {adminhaus.eingang.oben} to false
- on right click on mob head block:
- if "%world%" is "world":
- if "%location of event-block%" is "x: -553.5, y: 117.5, z: 208.5":
- if x-coordinate of player is less than -551:
- if player has permission "gminer.spieler":
- if {eingabe.adminhaus.oben::%player%} isn't set:
- cancel event
- set {eingabe.adminhaus.oben::%player%} to ""
- open chest with 6 rows named "&cPIN eingeben &7(Adminhaus-Dach)" to player
- loop 54 times:
- set slot loop-value - 1 of player's current inventory to gray stained glass pane named "&c"
- set slot 12 of player's current inventory to 1 of white stained glass pane named "&c&l1"
- set slot 13 of player's current inventory to 2 of white stained glass pane named "&c&l2"
- set slot 14 of player's current inventory to 3 of white stained glass pane named "&c&l3"
- set slot 12+9 of player's current inventory to 4 of white stained glass pane named "&c&l4"
- set slot 13+9 of player's current inventory to 5 of white stained glass pane named "&c&l5"
- set slot 14+9 of player's current inventory to 6 of white stained glass pane named "&c&l6"
- set slot 12+9+9 of player's current inventory to 7 of white stained glass pane named "&c&l7"
- set slot 13+9+9 of player's current inventory to 8 of white stained glass pane named "&c&l8"
- set slot 14+9+9 of player's current inventory to 9 of white stained glass pane named "&c&l9"
- set slot 12+9+9+9 of player's current inventory to 0 of white stained glass pane named "&c&l0"
- set slot 13+9+9+9 of player's current inventory to red stained glass pane named "&c&lLÖSCHEN"
- set slot 14+9+9+9 of player's current inventory to 1 of green stained glass pane named "&a&lEINGABE"
- while inventory name of player's current inventory is "&cPIN eingeben &7(Adminhaus-Dach)":
- if {eingabe.adminhaus.oben::%player%} is set:
- send action bar from "&e&lEingabe: &f%{eingabe.adminhaus.oben::%player%}%" to player
- else:
- exit
- wait 2 ticks
- else:
- send action bar from "&4&l✖&f &c&lZUGRIFF VERWEIGERT" to player
- on inventory click:
- if inventory name of player's current inventory is "&cPIN eingeben &7(Adminhaus-Dach)":
- cancel event
- set {_blockloc} to location at -553.5, 117.5, 208.5 in world "world"
- if clicked inventory isn't inventory of player:
- if clicked item is white stained glass pane:
- playRadius({_blockloc}, 10, "Beep", 0.6)
- if {eingabe.adminhaus.oben::%player%} isn't set:
- set {eingabe.adminhaus.oben::%player%} to "%uncolored name of clicked item%"
- else:
- if length of {eingabe.adminhaus.oben::%player%} is less than 4:
- set {eingabe.adminhaus.oben::%player%} to "%{eingabe.adminhaus.oben::%player%}%%uncolored name of clicked item%"
- if clicked item is green stained glass pane named "&a&lEINGABE":
- playRadius({_blockloc}, 10, "Beep", 0.5, 0.7)
- if {eingabe.adminhaus.oben::%player%} is set:
- close inventory of player
- set {_eingabe} to {eingabe.adminhaus.oben::%player%}
- delete {eingabe.adminhaus.oben::%player%}
- if "%{_eingabe}%" is "1501":
- if {adminhaus.eingang.oben} is true:
- send action bar from "&4&l✖&f &c&lDie Tür ist gerade in Benutzung!" to player
- exit
- set {adminhaus.eingang.oben} to true
- set block at location at -554.5, 118.5, 207.5 to air
- set block at location at -554.5, 118.5, 206.5 to air
- set block at location at -554.5, 118.5, 205.5 to air
- set block at location at -554.5, 117.5, 207.5 to air
- set block at location at -554.5, 117.5, 206.5 to air
- set block at location at -554.5, 117.5, 205.5 to air
- set block at location at -554.5, 116.5, 207.5 to air
- set block at location at -554.5, 116.5, 206.5 to air
- set block at location at -554.5, 116.5, 205.5 to air
- set block at location at -554.5, 115.5, 207.5 to stone slab
- set block at location at -554.5, 115.5, 206.5 to stone slab
- set block at location at -554.5, 115.5, 205.5 to stone slab
- playRadius({_blockloc}, 10, "Erfolg", 0.7, 1.1)
- if {eingabe.adminhaus.oben::%player%} isn't set:
- send action bar from "&2&l✔&f &a&lZUGRIFF GESTATTET" to player
- wait 1 second
- wait 1 seconds
- set block at location at -554.5, 118.5, 207.5 to bars
- set block at location at -554.5, 118.5, 206.5 to bars
- set block at location at -554.5, 118.5, 205.5 to bars
- set block at location at -554.5, 117.5, 207.5 to bars
- set block at location at -554.5, 117.5, 206.5 to bars
- set block at location at -554.5, 117.5, 205.5 to bars
- set block at location at -554.5, 116.5, 207.5 to bars
- set block at location at -554.5, 116.5, 206.5 to bars
- set block at location at -554.5, 116.5, 205.5 to bars
- set block at location at -554.5, 115.5, 207.5 to bars
- set block at location at -554.5, 115.5, 206.5 to bars
- set block at location at -554.5, 115.5, 205.5 to bars
- set {adminhaus.eingang.oben} to false
- else:
- playRadius({_blockloc}, 10, "Fehler", 0.4)
- loop 2 times:
- if {eingabe.adminhaus.oben::%player%} isn't set:
- send action bar from "&4&l✖&f &c&lZUGRIFF VERWEIGERT" to player
- wait 1 second
- delete {eingabe.adminhaus.oben::%player%}
- if clicked item is red stained glass pane named "&c&lLÖSCHEN":
- playRadius({_blockloc}, 10, "Beep", 0.6, 0.8)
- if {eingabe.adminhaus.oben::%player%} is set:
- if length of {eingabe.adminhaus.oben::%player%} is less than 2:
- set {eingabe.adminhaus.oben::%player%} to ""
- else:
- set {eingabe.adminhaus.oben::%player%} to "%subtext of {eingabe.adminhaus.oben::%player%} from characters 1 to (the length of {eingabe.adminhaus.oben::%player%} - 1)%"
- on inventory close:
- if inventory name of player's current inventory is "&cPIN eingeben &7(Adminhaus-Dach)":
- wait 1 tick
- if {eingabe.adminhaus.oben::%player%} is set:
- send action bar from "" to player
- delete {eingabe.adminhaus.oben::%player%}
- on load:
- delete {eingabe.adminhaus.oben::*}
- on right click on mob head block:
- if "%world%" is "world":
- if "%location of event-block%" is "x: -555.5, y: 116.5, z: 205.5":
- if x-coordinate of player is less than -554.8:
- if player has permission "gminer.spieler":
- if {adminhaus.eingang.oben} is true:
- exit
- else:
- set {adminhaus.eingang.oben} to true
- set block at location at -554.5, 118.5, 207.5 to air
- set block at location at -554.5, 118.5, 206.5 to air
- set block at location at -554.5, 118.5, 205.5 to air
- set block at location at -554.5, 117.5, 207.5 to air
- set block at location at -554.5, 117.5, 206.5 to air
- set block at location at -554.5, 117.5, 205.5 to air
- set block at location at -554.5, 116.5, 207.5 to air
- set block at location at -554.5, 116.5, 206.5 to air
- set block at location at -554.5, 116.5, 205.5 to air
- set block at location at -554.5, 115.5, 207.5 to stone slab
- set block at location at -554.5, 115.5, 206.5 to stone slab
- set block at location at -554.5, 115.5, 205.5 to stone slab
- playRadius(location of event-block, 10, "Erfolg", 0.7, 1.1)
- loop 2 times:
- if {eingabe.adminhaus.oben::%player%} isn't set:
- send action bar from "&2&l✔&f &a&lZUGRIFF GESTATTET" to player
- wait 1 second
- wait 1 seconds
- set block at location at -554.5, 118.5, 207.5 to bars
- set block at location at -554.5, 118.5, 206.5 to bars
- set block at location at -554.5, 118.5, 205.5 to bars
- set block at location at -554.5, 117.5, 207.5 to bars
- set block at location at -554.5, 117.5, 206.5 to bars
- set block at location at -554.5, 117.5, 205.5 to bars
- set block at location at -554.5, 116.5, 207.5 to bars
- set block at location at -554.5, 116.5, 206.5 to bars
- set block at location at -554.5, 116.5, 205.5 to bars
- set block at location at -554.5, 115.5, 207.5 to bars
- set block at location at -554.5, 115.5, 206.5 to bars
- set block at location at -554.5, 115.5, 205.5 to bars
- set {adminhaus.eingang.oben} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement