Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Midas' Gold Tutorial:
- 1st Part (Item Part):
- 1. Put this in a repeating command block, always active: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:end_crystal",Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:raw_gold_block",Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:ender_pearl",Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:fire_charge,Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:nether_star,Count:1b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}
- 2. Put this in a chain command block, conditional, always active, connected to 1st one: kill @e[type=minecraft:item,nbt=!{Item:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}]
- 3. Put this in a chain command block, conditional, always active, connected to 2nd one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run summon minecraft:area_effect_cloud ~ ~0.5 ~ {Particle:"wax_off",Radius:1f,RadiusPerTick:0.1f,Duration:10}
- 4. Put this in a chain command block, conditional, always active, connected to 3rd one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run playsound minecraft:block.note_block.bell ambient @a ~ ~0.5 ~ 1 0 1
- 5. Put this in a chain command block, conditional, always active, connected to 4th one: execute at @a run summon minecraft:villager ~ ~3 ~ {Invulnerable:1b,NoGravity:1b,Silent:1b,NoAI:1b,Tags:["midastouch"],ActiveEffects:[{Id:11,Amplifier:255b,Duration:1000000,ShowParticles:0b},{Id:14,Amplifier:255b,Duration:1000000,ShowParticles:0b}]}
- 6. Put this in a chain command block, conditional, always active, connected to 5th one: scoreboard objectives add midastouch minecraft.custom:minecraft.talked_to_villager
- 7. Put this in a chain command block, conditional, always active, connected to 5th one: scoreboard objectives add midastouch_sneak minecraft.custom:minecraft.talked_to_villager
- 8. Put this in a chain command block, conditional, always active, connected to 5th one: scoreboard objectives add midastouch_jump minecraft.custom:minecraft.talked_to_villager
- 9. Put this in a repeating command block, always active: execute at @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run tp @e[type=minecraft:villager,tag=midastouch,sort=nearest,limit=1] ^ ^0.6 ^2
- 2nd Part (Effects Part):
- 1. Put this in a repeating command block, always active: execute at @a[scores={midastouch=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run playsound minecraft:block.note_block.bell @a ^ ^1 ^1 1 0 1
- 2. Put this in a chain command block, conditional, always active, connected to 1st one: execute at @a[scores={midastouch=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run summon minecraft:armor_stand ^ ^1 ^1 {NoGravity:1b,Silent:1b,Invulnerable:1b,Invisible:1b,Tags:["midastouch"]}
- 3. Put this in a chain command block, conditional, always active, connected to 2nd one: scoreboard players set @a[scores={midastouch=1..}] midastouch 0
- 4. Put this in a repeating command block, always active: execute as @a unless entity @s[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run scoreboard players set @s midastouch_jump 0
- 5. Put this in a repeating command block, always active: execute as @a unless entity @s[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run scoreboard players set @s midastouch_sneak 0
- 6. Put this in a repeating command block, always active: execute as @e[type=minecraft:armor_stand,tag=midastouch] at @s run tp @s ^ ^ ^1 facing entity @e[type=!player,tag=!midastouch,sort=nearest,limit=1]
- 7. Put this in a repeating command block, always active: execute at @e[type=minecraft:armor_stand,tag=midastouch] run particle minecraft:wax_off ~ ~1 ~ 0.25 0.25 0.25 1 10 force @a
- 8. Put this in a chain command block, conditional, always active, connected to 7th one: execute at @e[type=minecraft:armor_stand,tag=midastouch] run playsound minecraft:block.note_block.bell ambient @a ~ ~1 ~ 1 0 1
- 9. Put this in a repeating command block, always active: execute as @e[type=!minecraft:player,tag=!midastouch] at @s if entity @e[type=minecraft:armor_stand,tag=midastouch,distance=..1] run effect give @s minecraft:invisibility 10 255 true
- 10. Put this in a chain command block, conditional, always active, connected to 9th one: execute at @e[type=!minecraft:player,tag=!midastouch] if entity @e[type=minecraft:armor_stand,tag=midastouch,distance=..1] run summon minecraft:falling_block ~ ~1 ~ {BlockState:{Name:"minecraft:raw_gold_block"},Time:1,DropItem:1b,Tags:["midastouch"]}
- 11. Put this in a chain command block, conditional, always active, connected to 10th one: execute as @e[type=!minecraft:player,tag=!midastouch] at @s if entity @e[type=minecraft:armor_stand,tag=midastouch,distance=..1] run kill @s
- 12. Put this in a chain command block, conditional, always active, connected to 11th one: kill @e[type=minecraft:armor_stand,tag=midastouch]
- 13. Put this in a repeating command block, always active: execute at @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] unless block ~ ~-1 ~ minecraft:air run setblock ~ ~-1 ~ minecraft:raw_gold_block replace
- 14. Put this in a repeating command block, always active: execute at @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run particle minecraft:wax_off ~ ~ ~ 0.5 0.125 0.5 1 10 force @a
- 15. Put this in a repeating command block, always active: execute at @a[scores={midastouch_sneak=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run particle minecraft:wax_off ~ ~ ~ 7 0.125 7 1 100 force @a
- 16. Put this in a chain command block, conditional, always active, connected to 15th one: execute at @a[scores={midastouch_sneak=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run playsound minecraft:block.note_block.bell ambient @a ~ ~ ~ 1 0 1
- 17. Put this in a chain command block, conditional, always active, connected to 16th one: execute at @a[scores={midastouch_sneak=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run fill ~-7 ~-1 ~-7 ~7 ~-1 ~7 minecraft:raw_gold_block replace
- 18. Put this in a chain command block, conditional, always active, connected to 17th one: execute as @e[type=!minecraft:player,tag=!midastouch] at @s if entity @a[scores={midastouch_sneak=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run effect give @s minecraft:invisibility 10 255 true
- 19. Put this in a chain command block, conditional, always active, connected to 18th one: execute as @e[type=!minecraft:player,tag=!midastouch] at @s if entity @a[scores={midastouch_sneak=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run summon minecraft:falling_block ~ ~1 ~ {BlockState:{Name:"minecraft:raw_gold_block"},Time:1,DropItem:1b,Tags:["midastouch"]}
- 20. Put this in a chain command block, conditional, always active, connected to 19th one: execute as @e[type=!minecraft:player,tag=!midastouch] at @s if entity @a[scores={midastouch_sneak=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run kill @s
- 21. Put this in a chain command block, conditional, always active, connected to 20th one: scoreboard players set @a[scores={midastouch_sneak=1..}] midastouch_sneak 0
- 22. Put this in a repeating command block, always active: execute at @a[scores={midastouch_jump=1..},nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}}] run summon minecraft:fireball ^ ^1 ^1 {HasVisualFire:0b,Tags:["midastouch"],Item:{id:"minecraft:raw_gold_block",Count:1b}}
- 23. Put this in a chain command block, conditional, always active, connected to 22nd one: scoreboard players set @a[scores={midastouch_jump=1..}] midastouch_jump 0
- 24. Put this in a repeating command block, always active: execute at @e[type=minecraft:fireball,tag=midastouch] run particle minecraft:wax_off ~ ~ ~ 0.25 0.25 0.25 1 25 force @a
- 25. Put this in a chain command block, conditional, always active, connected to 24th one: execute at @e[type=minecraft:fireball,tag=midastouch] run playsound minecraft:block.note_block.bell ambient @a ~ ~ ~ 1 1 1
- 26. Put this in a repeating command block, always active: execute as @e[type=!minecraft:player,tag=!midastouch,nbt={HurtTime:10s}] at @s if entity @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run particle minecraft:wax_off ~ ~1 ~ 0.25 0.25 0.25 10 25 force @a
- 27. Put this in a chain command block, conditional, always active, connected to 26th one: execute as @e[type=!minecraft:player,tag=!midastouch,nbt={HurtTime:10s}] at @s if entity @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run playsound minecraft:block.note_block.bell ambient @a ~ ~1 ~ 1 1 1
- 28. Put this in a chain command block, conditional, always active, connected to 27th one: execute as @e[type=!minecraft:player,tag=!midastouch,nbt={HurtTime:10s}] at @s if entity @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run effect give @s minecraft:invisibility 10 255 true
- 29. Put this in a chain command block, conditional, always active, connected to 28th one: execute as @e[type=!minecraft:player,tag=!midastouch,nbt={HurtTime:10s}] at @s if entity @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run summon minecraft:falling_block ~ ~1 ~ {BlockState:{Name:"minecraft:raw_gold_block"},Time:1,DropItem:1b,Tags:["midastouch"]}
- 30. Put this in a chain command block, conditional, always active, connected to 29th one: execute as @e[type=!minecraft:player,tag=!midastouch,nbt={HurtTime:10s}] at @s if entity @a[nbt={SelectedItem:{id:"minecraft:raw_gold",Count:1b,tag:{display:{Name:'{"text":"Midas\' Gold","italic":false}'},Enchantments:[{}]}}},distance=..14] run kill @s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement