Advertisement
dragnoz

Torch Spawner

Jan 21st, 2015
2,355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. Clock
  2. Bottom: /fill ~20 ~1 ~20 ~ ~1 ~ stone 0 replace redstone_block
  3. Top: /fill ~20 ~-1 ~20 ~ ~-1 ~ redstone_block 0 replace stone
  4.  
  5. Scoreboard
  6. /scoreboard objectives add torchdown dummy
  7.  
  8. Item
  9. /give @a minecraft:torch 10 0 {HideFlags:1,display:{Name:You Light Up My Life,Lore:[Drop to use]},ench:[{id:34,lvl:1}]}
  10.  
  11. Detect dropped item
  12. /scoreboard players add @e[type=Item] torchdown 1 {Item:{tag:{HideFlags:1,display:{Name:You Light Up My Life,Lore:[Drop to use]},ench:[{id:34,lvl:1}]}}}
  13.  
  14. Torch Spawner
  15. /execute @e[score_torchdown_min=30] ~ ~ ~ /setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {EntityId:FallingSand,SpawnData:{Tile:torch,Block:torch,Time:1},SpawnCount:100,SpawnRange:200,RequiredPlayerRange:600,Delay:0,MinSpawnDelay:1000000,MaxSpawnDelay:1000000,MaxNearbyEntities:100}
  16.  
  17. Kill spawner
  18. /execute @e[score_torchdown_min=120] ~ ~ ~ setblock ~ ~1 ~ air
  19.  
  20. Play Particle
  21. /execute @e[score_torchdown_min=1] ~ ~ ~ /particle flame ~ ~0.5 ~ 0 0 0 0.01 1 force
  22.  
  23. Kill Torch
  24. /kill @e[score_torchdown_min=120]
  25.  
  26. Kill grass, snow and torch
  27. /execute @e[type=FallingSand] ~ ~ ~ /fill ~1 ~-3 ~1 ~-1 ~1 ~-1 air 0 replace minecraft:tallgrass
  28. /execute @e[type=FallingSand] ~ ~ ~ /fill ~1 ~-3 ~1 ~-1 ~1 ~-1 air 0 replace minecraft:snow_layer
  29. /execute @e[type=FallingSand] ~ ~ ~ /fill ~1 ~-3 ~1 ~-1 ~1 ~-1 air 0 replace minecraft:torch
  30.  
  31.  
  32. World Download
  33. https://www.dropbox.com/s/mf91kgcl5z10wyj/Dragnoz%20Torch%20World.zip?dl=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement