Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cheese_press:
- type: item
- material: burning_furnace
- display name: <&r><&l>Cheese Press
- lore:
- - <&4>Equipment
- - <&8><&m>--------------------
- - <&7>Turns milk into cheese.
- cheese_press_handler:
- type: world
- events:
- on player clicks in furnace:
- - if <context.inventory.title.strip_color> == "Cheese Press" {
- - if <context.cursor_item.display_name.strip_color> == "Milk" {
- - narrate "Say cheese"
- - adjust <context.inventory.location> furnace_burn_time:2000
- - adjust <context.inventory.location> furnace_cook_time:2000
- } else {
- - narrate "No cheese for you"
- }
- }
- on player opens furnace:
- - if <context.inventory.title.strip_color> == "Cheese Press" {
- - inventory set d:<context.inventory.location> slot:2 o:ore_coal
- }
- on player clicks ore_coal in furnace:
- - determine cancelled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement