Advertisement
Guest User

Furnace Fast Smelting

a guest
Jan 16th, 2020
1,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. command /fastsmelt <text>:
  2. permission: sk.op
  3. trigger:
  4. if arg-1 is "on" or "enable":
  5. set {fastsmelt} to true
  6. message "&e&lAbsorbed &7| &6FastSmelt &aEnabled!"
  7. if arg-1 is "off" or "disable":
  8. delete {fastsmelt}
  9. message "&e&lAbsorbed &7| &6FastSmelt &cDisabled!"
  10.  
  11. on fuel burn:
  12. if {fastsmelt} is true:
  13. if tag "CookTime" of nbt of event-block is 0:
  14. add "{CookTime:180s}" to nbt of event-block
  15. wait 1 tick
  16. set {_burnTime} to tag "BurnTime" of nbt of event-block
  17. set {_burnTime} to {_burnTime} / 10
  18. add "{BurnTime:%{_burnTime}%s}" to nbt of event-block
  19.  
  20. on smelt:
  21. if {fastsmelt} is true:
  22. add "{CookTime:180s}" to nbt of event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement