1

First datapack

Hei28 10/2/24 4:17 pm
101
10/7/2024 2:34 pm
I am trying to create a datapack that allows you to use a stick to copy block properties and paste them onto a second block, basically copying the first block and then pasting it onto the second. I'm a complete newbie and I know there is something similar, but the developer abandoned that project.
Posted by
Hei28
Level 1 : New Miner
1

  Have something to say?

JoinSign in

1

LaSetaXD
10/07/2024 2:34 pm
Level 39 : Artisan Miner
I don't think that there is an easy way to get all of the block properties of any block so the only way I can think of is basically testing for all of the possible block properties and returning what you get which is very tedious since you would need to check for every possibility adding them individually but if you want to still do it this would be one possible format to check for a block property.

/execute if block ~ ~ ~ #custom_tag:all_blocks[property=value] run say DO SOMETHING
You would also need a block tag including all of the blocks in the game in it. But if you manage to find some other way to do this please share it since I have wanted that for a very long time by now. Also you could use predicates but you would need one per property as well.
1

Welcome