Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /getflyarmor:
- permission: flyarmor.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- give player diamond chestplate with nbt "{display:{Name:""&b&lFly Armor""},Unbreakable:1b,ench:[{id:0s,lvl:10s}],AttributeModifiers:[{Name:""generic.armor"",UUIDLeast:985566364l,UUIDMost:985566364l,Operation:0,AttributeName:""generic.armor"",Amount:20d,Slot:""chest""},{Name:""generic.armorToughness"",UUIDLeast:985566364l,UUIDMost:985566364l,Operation:0,AttributeName:""generic.armorToughness"",Amount:2d,Slot:""chest""}]}"
- on inventory click:
- clicked inventory is inventory of player
- if clicked item is diamond chestplate:
- name of clicked item is "&b&lFly Armor"
- if "%click type%" contain "drop key":
- clicked slot is 38
- set player's flight mode to false
- else if "%click type%" is "right mouse button" or "left mouse button":
- if clicked cursor is air:
- set player's flight mode to false
- if clicked cursor is any chestplate:
- set player's flight mode to false
- else if "%click type%" contain "mouse button with shift":
- if clicked slot is not 38:
- set {_chestitem} to slot 38 of player's inventory
- {_chestitem} is not set
- set player's flight mode to true
- else if clicked slot is 38:
- loop 36 times:
- set {_loopslot} to loop-number - 1
- if slot {_loopslot} of player's inventory is air:
- set player's flight mode to false
- stop loop
- if clicked cursor is diamond chestplate:
- name of clicked cursor is "&b&lFly Armor"
- clicked slot is 38
- "%click type%" is "right mouse button" or "left mouse button"
- set player's flight mode to true
- on respawn:
- player's chestplate is diamond chestplate
- name of player's chestplate is "&b&lFly Armor"
- set player's flight mode to true
- on join:
- player's chestplate is diamond chestplate
- name of player's chestplate is "&b&lFly Armor"
- set player's flight mode to true
Advertisement
Add Comment
Please, Sign In to add comment