#Farmer's Delight cutting board recipe that consumes both items used?

14 messages · Page 1 of 1 (latest)

quick mason
#

So I've made this rather silly recipe to make lava using a cutting board, but remembered that the magma block wouldn't be consumed upon crafting, is there a way to make it so that it is?

median gyroBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

teal briar
#

looking at previous conversations and documentations it looks like youll have to do it via a blockevent.rightclick thingy

#
    {
    event.player.tell(event.block.getNBT())
    event.player.tell(event.block.entity.getAllContainers())
    if (event.block.id === "farmersdelight:cutting_board" && event.player.heldItem && event.player.heldItem.id.includes("#farmersdelight:cabbage_roll_ingredients"))
        {
            event.player.tell("this should fire")
            event.player.tell(event)
            // event.player.mainHandItem.count--
        }
    }
)```
#

this is what i have so far but unfortunately i cant for the life of me access whats inside the cutting board

#

but yeah, right clicked block event and somehow detecting the recipe would get you to doing the event.player.mainHandItem.count-- which would consume a single item from the stack

#

this is where i originally figured out that the event cant happen within the recipe

#

and then figured out that its not a standard recipe and its actually a block detection rather than an item crafted detection

#

im sorry its not much help 😭 ive been trying at this for hours and im hoping this narrows it down for the both of us

teal briar
#

update the cutting board does not have the typical inventory

open sparrow