Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Perm: uhc.staff
- P: &f[&bFast Smelting&f]
- C: &b
- H: &f
- command /fastsmelting <text>:
- permission: sk.op
- trigger:
- if arg-1 is "on" or "enable":
- set {fastsmelt} to true
- broadcast "{@P} {@C}Fast Smelting {@H}Enabled{@C}!"
- if arg-1 is "off" or "disable":
- delete {fastsmelt}
- broadcast "{@P} {@C}Fast Smelting {@H}Disabled{@C}!"
- on fuel burn:
- if {fastsmelt} is true:
- if tag "CookTime" of nbt of event-block is 0:
- add "{CookTime:180s}" to nbt of event-block
- wait 1 tick
- set {_burnTime} to tag "BurnTime" of nbt of event-block
- set {_burnTime} to {_burnTime} / 10
- add "{BurnTime:%{_burnTime}%s}" to nbt of event-block
- on smelt:
- if {fastsmelt} is true:
- add "{CookTime:180s}" to nbt of event-block
Advertisement
Add Comment
Please, Sign In to add comment