Date: 2019/11/12 10:39:03 UTC-08:00
Type: Denizen Script
on player clicks in anvilr:
- narrate <context.cursor_item.material.name>
- narrate <context.item.material.name>
- if <context.raw_slot> == 44 && <context.cursor_item.material.name> == "ENDESSENCE":
- wait 1t
- adjust <player> item_on_cursor:air
- inventory set d:<context.inventory> o:READY slot:43
- inventory set d:<context.inventory> o:READY slot:42
- narrate D
- else if <context.raw_slot> == 44 && <context.item.material.name> == "ENDESSENCE":
- wait 1t
- adjust <player> item_on_cursor:ENDESSENCE
- inventory set d:<context.inventory> o:ENDESSENCE_CRYSTAL slot:44
- inventory set d:<context.inventory> o:white_stained_glass_pane slot:43
- inventory set d:<context.inventory> o:white_stained_glass_pane slot:42
- narrate C
- else if <context.raw_slot> == 44 && <context.cursor_item.material.name> != "ENDESSENCE" && <context.cursor_item.material.name> != "air":
- wait 1t
- adjust <player> item_on_cursor:air
- inventory set d:<context.inventory> o:red_stained_glass_pane slot:43
- inventory set d:<context.inventory> o:red_stained_glass_pane slot:42
- narrate A
- else if <context.raw_slot> == 44 && <context.item.material.name> != "ENDESSENCE" && <context.cursor_item.material.name> == "air":
- wait 1t
- adjust <player> item_on_cursor:<context.inventory.slot[44].simple>
- inventory set d:<context.inventory> o:ENDESSENCE_CRYSTAL slot:44
- inventory set d:<context.inventory> o:white_stained_glass_pane slot:43
- inventory set d:<context.inventory> o:white_stained_glass_pane slot:42
- narrate B