I'm building a map in which the player needs to take a raft. The player is meant to place down a birch boat named "Raft" and when it's placed down, the boat is removed and replaced with an actual raft made of yellow wool. How would I go about doing this?
In order to make this task possible you will need two command blocks in a chain. The first one repeating always active and the second one chain always active and conditional.
The first command block could be “redstone active” or “always active” it will be set to repeating meaning it will happen 20 times every second or once every .05 seconds. Next put it on unconditional because there is no command block before it. Write the command
/execute @e[type=boat,name=raft] ~ ~ ~ fill ~5 ~ ~5 ~-5 ~ ~-5 wool 4
The second command block could be both as well but must be powered when the top one is and vise versa. As for command block type it must be chain so it will activate after the repeating command block if powered. Last setting is the “conditional/unconditional” turn it to conditional so it will only work if the first one works. Set the command to
SUMMARY: First command block find “raft” and makes a 5 by 5 platform of yellow wool. Second command kills the “raft(s)” found.