I know the main purpose of the mod is to spawn new falling blocks. But I can't seem to modify the BlockState of the block. I will walk you through what I am doing.
I have a mod that turns solid blocks into falling blocks. So I am doing a special ability where wherever you are standing. It launches that block up. So iI am hoping to do something in this order.
1: Turns solid block into falling block.
2: On the same tick, spawn your mods custom falling block with this command. /fallingblock moveFromBlockPosToBlockPosByTick ~ ~ ~ ~ ~ ~ true 30 minecraft:structure_block. (This spawns in a custom falling block that will launch about 3 blocks into the air and fall back down and turn back into a solid block right away)
3: On the next tick, data modify the BlockState of the custom falling block from the original falling block using this command. /data modify entity @n[type=commandfallingblock:better_falling_block] DataBlock.BlockState.Name set from entity @s BlockState.Name
4: Delete the original falling block
I am hoping for this method because I can't control how long it takes a vanilla falling block to turn back into a solid block and this is the only mod 1.21.1 that I have found that has some form of that.
Potential solutions for the mod to make something like this possible.
1: If running the command. Could we run it without a blockstate attached? And if there is a block at the start location. It turns that block into a falling block and deletes the block
2: Make it so the blockstate can be edited. This seems to be NBT controlled, but for some reason it can't be changed at all. Even when I spawn in a block that exists for 1000 ticks. And running data merges it doesn't want to update.
3: Add a command or NBT that lets us control vanilla falling block entities in a similar way, but adds a solidify time nbt?
Just some thoughts! Its a handy mod and appreciate you put the time into making it!
I know the main purpose of the mod is to spawn new falling blocks. But I can't seem to modify the BlockState of the block. I will walk you through what I am doing.
I have a mod that turns solid blocks into falling blocks. So I am doing a special ability where wherever you are standing. It launches that block up. So iI am hoping to do something in this order.
1: Turns solid block into falling block.
2: On the same tick, spawn your mods custom falling block with this command. /fallingblock moveFromBlockPosToBlockPosByTick ~ ~ ~ ~ ~ ~ true 30 minecraft:structure_block. (This spawns in a custom falling block that will launch about 3 blocks into the air and fall back down and turn back into a solid block right away)
3: On the next tick, data modify the BlockState of the custom falling block from the original falling block using this command. /data modify entity @n[type=commandfallingblock:better_falling_block] DataBlock.BlockState.Name set from entity @s BlockState.Name
4: Delete the original falling block
I am hoping for this method because I can't control how long it takes a vanilla falling block to turn back into a solid block and this is the only mod 1.21.1 that I have found that has some form of that.
Potential solutions for the mod to make something like this possible.
1: If running the command. Could we run it without a blockstate attached? And if there is a block at the start location. It turns that block into a falling block and deletes the block
2: Make it so the blockstate can be edited. This seems to be NBT controlled, but for some reason it can't be changed at all. Even when I spawn in a block that exists for 1000 ticks. And running data merges it doesn't want to update.
3: Add a command or NBT that lets us control vanilla falling block entities in a similar way, but adds a solidify time nbt?
Just some thoughts! Its a handy mod and appreciate you put the time into making it!