Paste #30529: Better Furnaces

Date: 2016/02/18 21:54:12 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


ironFurnace:
    type: item
    material: furnace
    display name: "<gray>Iron Furnace"
    lore:
    - "<red>Make sure to label this furnace considering"
    - "<red>it looks exactly like a normal one."
    recipe:
    - i@iron_ingot|i@iron_ingot|i@iron_ingot
    - i@iron_ingot|i@furnace|i@iron_ingot
    - i@iron_ingot|i@iron_ingot|i@iron_ingot

ironFurnaceMech:
    type: world
    events:
        on player places furnace:
        - if <context.item_in_hand.display_name> == "<gray>Iron Furnace" {
            - flag ironFurnace
            - narrate "<gold>Iron Furnace placed, will cook"
            - narrate "<gold>items slightly faster than normal."
            }
        on player right clicks furnace:
        - if <player.has_flag[ironFurnace]> {
            - adjust ironFurnace furnace_cook_time:150
            }