#How to know a block was placed by a player

1 messages · Page 1 of 1 (latest)

quartz light
#

i made it so fortune works on every single block in the world and i now wanna code it so that fortune doesn't work on player placed blocks.

rain moon
#

The way I think to do this, is to use chunk attachments, and store a certain number of bit masks in an array

#

And then have some indexing system to allow you to get the bitmask that contains that pos

#

I could actually mock this in a bit, seems fun

quartz light
quartz light
dark jackal
#

Im not qualified for talking about this at all and I have no idea if this is useful for you but this reminded me that player placed leaves dont decay while natural ones do

rain moon
desert knot
#

I mean, it would be if you had the property on everything (see how Aether does it), but that’s not feasible for existing vanilla blocks.