I play in the BE. Is there a command for it: If you hold any block in your hand, the block should appear / be replaced under the player. Is that possible on all Minecraft platforms?
(From a video)
You can set the coordinate of the block block in a command block / detect and then change the block with a chain command block, but then for each individual block
for example:
normal command block / detect 0 0 0 obsidian, the player would have to be recognized when he is standing on the block.
Then continue with a chain block and then insert the block.
Who was the video from
Alpha stone
It only works with plugins or mods, unless you want to do it with 627152 Commands xD
Which mod?
I don't know
I meant that you can just program some yourself
But I don't think there are such mods on the Internet
How do you do that? I don't know my way around…
With Minecraft bedrock you can forget that, far too complicated.
Ok, then step by step: how can you find out what kind of block someone is holding in their hand?
This is also not possible in the Bedrock Edition. The Bedrock Edition does not allow NBT in commands - in short: you can completely forget something like that.
And Java? Because I have Be and Java
For example:
/ execute as @a [nbt = {SelectedItem: {id: "minecraft: stone"}}] at @s run setblock ~ ~ -1 ~ stone
This finds out, for example, whether someone is holding a stone in their hand, and if so it places a stone in front of them. Write that in a command block and set it to repeat. And then take a stone in your hand. Should work.
Thanks!