Randall123459

Fast Smelting

Jan 6th, 2017
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bFast Smelting&f]
  4. C: &b
  5. H: &f
  6.  
  7. command /fastsmelting <text>:
  8. permission: sk.op
  9. trigger:
  10. if arg-1 is "on" or "enable":
  11. set {fastsmelt} to true
  12. broadcast "{@P} {@C}Fast Smelting {@H}Enabled{@C}!"
  13. if arg-1 is "off" or "disable":
  14. delete {fastsmelt}
  15. broadcast "{@P} {@C}Fast Smelting {@H}Disabled{@C}!"
  16.  
  17. on fuel burn:
  18. if {fastsmelt} is true:
  19. if tag "CookTime" of nbt of event-block is 0:
  20. add "{CookTime:180s}" to nbt of event-block
  21. wait 1 tick
  22. set {_burnTime} to tag "BurnTime" of nbt of event-block
  23. set {_burnTime} to {_burnTime} / 10
  24. add "{BurnTime:%{_burnTime}%s}" to nbt of event-block
  25.  
  26. on smelt:
  27. if {fastsmelt} is true:
  28. add "{CookTime:180s}" to nbt of event-block
Advertisement
Add Comment
Please, Sign In to add comment