#Farmer's Delight cutting board recipe that consumes both items used?
14 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
im trying to do something similar where im assembling a roll
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
update the cutting board does not have the typical inventory
Here’s a link to the thread for this problem, for anyone trying to make something like this work later