Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on block place:
- if event-block is tnt:
- set event-block to air
- spawn 1 primed tnt at location of event-block
- set fuse time of last spawned primed tnt to 0
- set the blast size of last spawned primed tnt to 5
- remove 1 of tnt from player
- wait 3 seconds
- inventory(player)
- on left click:
- if player is holding tnt:
- remove 1 of tnt from player
- spawn 1 primed tnt at location of player
- thrust last spawned primed tnt in direction of player at speed 2
- thrust last spawned primed tnt upwards at speed 0.5
- set fuse time of last spawned primed tnt to 20
- set the blast size of last spawned primed tnt to 7
- wait 3 seconds
- inventory(player)
- on explode:
- loop exploded blocks:
- set {_boom::%loop-value's location%::block} to block data of loop-value
- set {_boom::%loop-value's location%::loc} to location of loop-value
- wait 3 seconds
- loop shuffled indices of {_boom::*}:
- wait 2 ticks
- set block at {_boom::%loop-value%::loc} to {_boom::%loop-value%::block}
- on projectile hit:
- if event-projectile is an arrow:
- spawn 1 primed tnt at location of event-projectile
- set fuse time of last spawned primed tnt to 0
- set the blast size of last spawned primed tnt to 3
- delete event-projectileck}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement