Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # First it tests for the head in the chest. Then it looks for boots and tags them DropBoots
- # The tag will only be added to items that match the criteria. If no boots are found, the boot stack won't be activated.
- scoreboard players tag @e[type=Item,x=-254,y=42,z=-63,r=2,c=1] add DropBoots {Item:{id:"minecraft:leather_boots"}}
- scoreboard players tag @e[type=Item,x=-254,y=42,z=-63,r=2,c=1] add DropBoots {Item:{id:"minecraft:golden_boots"}}
- scoreboard players tag @e[type=Item,x=-254,y=42,z=-63,r=2,c=1] add DropBoots {Item:{id:"minecraft:chainmail_boots"}}
- scoreboard players tag @e[type=Item,x=-254,y=42,z=-63,r=2,c=1] add DropBoots {Item:{id:"minecraft:iron_boots"}}
- scoreboard players tag @e[type=Item,x=-254,y=42,z=-63,r=2,c=1] add DropBoots {Item:{id:"minecraft:diamond_boots"}}
- # then if that tag exists, it sets a redstone block at the top of the Level 1 Boots Buff stack.
- execute @e[tag=DropBoots] ~ ~ ~ /setblock -252 40 -68 redstone_block
- ##
- ## here, we need to add DropHat, DropPants, DropChest, and DropSword for every material of those items, followed by checking to see if that tag exists, and if it does, placing a redstone block at the top of the appropriate stack. Then we need to add four more of these, one for each buff level.
- ##
- # placing the redstone block activates this sequence:
- # first, the buff
- entitydata @e[type=Item,c=1,tag=DropBoots] {Item:{tag:{Unbreakable:1,AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.05,Operation:1,UUIDLeast:894654,UUIDMost:2872,Slot:"feet"}]}}}
- # then the good news.
- title @p tile {"text":"Buffed the boots!","color":"gray","italic":"true"}
- title @p subtitle {"text":"Level 1 Buff","color":"red","italic":"true"}
- # we target the boots and give a little puff of magic
- execute @e[type=Item,c=1,tag=DropBoots] ~ ~ ~ particle reddust ~ ~ ~ 0.2 0.2 0.2 0 10
- # let's see if we can play a sound too
- execute @a[type=Player,x=-254,y=42,z=-63,r=8,c=1] ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 1 2 0
- # clone the empty chest
- clone -254 36 -64 -254 36 -64 -254 43 -62
- # remove that tag
- scoreboard players tag @a[tag=DropBoots] remove DropBoots
- # get rid of that redstone block
- setblock -252 40 -68 air
- ##
- ## So, we need a stack like this for every item, every buff level: Boots 1, Boots 2, etc etc.
Advertisement
Add Comment
Please, Sign In to add comment