Advertisement
Lmeagno

(2014, June 21) Dry With Sponge Entity

Jun 21st, 2014
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /scoreboard objectives add Sponge dummy
  2.  
  3. /scoreboard players set @e[type=Item] Sponge 0 {Age:0s,Item:{id:minecraft:sponge,Damage:0s}}
  4.  
  5. /execute @e[score_Sponge=0,score_Sponge_min=0] ~ ~ ~ /testforblock ~ ~ ~ water
  6. [COMPARATOR]
  7. \/
  8. /execute @e[score_Sponge=0,score_Sponge_min=0] ~-2 ~-2 ~-2 /fill ~ ~ ~ ~4 ~4 ~4 air 0 replace water
  9. =
  10. /execute @e[score_Sponge=0,score_Sponge_min=0] ~ ~ ~ /scoreboard players set @e[score_Sponge=0,score_Sponge_min=0,r=1] Sponge 1
  11. =
  12. [REPEATER]
  13. /scoreboard players reset * Sponge
  14.  
  15. /execute @e[score_Sponge=1,score_Sponge_min=1] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:minecraft:sponge,Damage:1,Count:1}}
  16.  
  17. /kill @e[score_Sponge=1,score_Sponge_min=1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement