#Is it possible to prevent a specific block from being placed on another specific block?
32 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
event.block.down will give you the block below the one you placed
you can check the ID of the block + block below and cancel the event
Thank you, that sounds like what I need! I'll give that a try later 
I finally had time to sit down and test this, it worked! Now I just need to figure out why there is a desync issue even with the script being on both client and server 
The flower is indeed prevented from being placed and is returned to the inventory, but it looks like it just disappeared from your inventory until you click the slot it was in.
try player.sendInventoryUpdate()
I tried adding that in on both sides, but it didn't change anything. I thought maybe I needed to do a full reboot of the game and now its rolled my script back to a non-working version... wtf??
Ok gonna shut everything down and try saving without the game open, bizarre 
=.=
So... I booted the game back up after fixing the script. It was no longer working as intended in game until I did a /reload, even though I didn't change anything
I'm not sure what is going on, I've never seen this before
event.player
hmmm
also tried event.player.inventory.markDirty() 
try putting the update before and after the cancel
not sure if the cancel stops execution in 1.20
Tried putting it before and after, both server and client side, no difference
._.
edit: nevermind I am silly, its still broke but whatever it semi works
Thank you for your help!
i dont know why its not fixed 
one last try
see if this works, or throws errors
event.player.inventoryMenu.broadcastFullState()
thats from an older version
