Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Torch Burnout (version 1.2)
- by AntOfThy (on MineCraft, Reddit, PasteBin, YouTube, and GMail)
- Comment on Reddit: http://redd.it/2n8013
- Commands in Paste: http://pastebin.com/8CGWCZp3
- When a torch is placed a "TorchTimer" Bat is summoned at Y=0 (in bedrock) that
- way the entity is completely out of the way of all players. It also does need
- invisibility potion effects.
- When the 'timeout' is reaches all torches in that column is removed.
- Start Function
- /scoreboard objectives add placeTorch stat.useItem.minecraft.torch
- /scoreboard objectives add TorchTimeout dummy
- Clock (Fast)
- # Set torch timeout entity (bottom to top)
- /execute @p[score_placeTorch_min=1] ~ 0 ~ /summon Bat ~ ~ ~ {CustomName:"TorchTimer",NoAI:1b,Invulnerable:1,PersistenceRequired:1,Silent:1b}
- /scoreboard players set @p[score_placeTorch_min=1] placeTorch 0
- Clock (slow) - minecart-in-web clock
- # Increment timeout count
- /scoreboard players add @e[name=TorchTimer] TorchTimeout 1
- # Timeout - remove torchs, kill entity
- /execute @e[name=TorchTimer,score_TorchTimeout_min=<desired time>] ~ ~ ~ /fill ~-5 0 ~-5 ~5 255 ~5 air 0 replace torch
- /kill @e[name=TorchTimer,score_TorchTimeout_min=<desired time>]
- Testing - See Torch Timer Bat counts
- /scoreboard objectives setdisplay sidebar TorchTimeout
- Notes:
- * The value 90 in the above is the time out. Adjust to suit (1-2 hours)
- * For debugging change bat placement to ~2 to place it above the player.
- This does not effect the torch removal effect. This is not recommended
- normally as the bat (even if also made invisible) gets in the way of
- players wanting to place blocks, with at that location, or through that
- location.
- The value 90 in last two commands is the timeout, and with 2 webs is about 1 to 2 hours. adjust to suit.
- The result of the mod has been a large number of pumpkin patches, and having
- to prepare your lighting before caving (not more simply making torches in caves).
- Also having to grow them limits the rate at which players light up areas. And
- having limits on the amount of lighting placed in caves, results in more dark
- spots and thus more mobs, and the danger in any caving adventure.
- I suppose you could add something to make jack-o-lanterns also time out but
- last a LOT LOT longer, but that has not been done. I felt it would produce
- too many entities.
- FUTURE EVIL IDEA... spawn N entities, player spread them to randomise, then in
- 5x5 columns around entities, remove torches, and replace jacks with pumpkins,
- so that lighting fail at random through out the area. This may be the better
- option as the entities no longer need to remain active all the time.
Advertisement
Add Comment
Please, Sign In to add comment