Hey there, me again. This time I am working on creating my own first backpack item, and I have a hopefully simple question; How can I cancel a player placing a block?
I am trying to create a backpack item and I want each instance of the item to have its own inventory. This means that insta-deleting the item and giving a new version of the item won't work. Here is my current script, though it's incredibly bare bones as I've just started it:
type: item
material: player_head
display name: Sack
mechanisms:
skull_skin: 02d014dd-6d1a-4056-ba55-977918442838|eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmY0MGM3NzE2MjY3YjFmNDY5YWU3MzBkMDEzYjE0MDAyN2Q4NDE5YzEyZDcxZjA3MTk4MTdhYzBhMWY3ZjA5ZCJ9fX0=
backpack_level1:
type: inventory
inventory: chest
size: 9
title: Sack
backpack_level1_open:
type: world
debug: true
events:
after player right clicks block with:backpack_level1_sackitem:
- ratelimit <player> 10t
- narrate test
- determine cancelled```
As you can see, I tried "determine cancelled" thinking that would cancel the block being placed. Obviously that doesn't work. Tried searching through the meta on my own before asking, but I probably just cannot find the right command.