1

How do I detect an entity with a certain name and replace it with a multi-block structure?

ItsAyduhn's Avatar ItsAyduhn1/5/19 4:16 pm history
1 emeralds 112 1
1/31/2019 3:01 pm
ShelLuser's Avatar ShelLuser
I'm building a map in which the player needs to take a raft. The player is meant to place down an oak boat named "Raft" and when it's placed down, the boat is removed and replaced with an actual raft made of yellow concrete. How would I go about doing this? Any responses would be greatly appreciated! Thanks!
Posted by ItsAyduhn's Avatar
ItsAyduhn
Level 24 : Expert Architect
18

Create an account or sign in to comment.

1

1
01/31/2019 3:01 pm
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
Sorry for a very late response, but better late than never?

Your solution is a command block, structure block and some 'redstone magic'.

Use a command block to detect the player. For example:

execute if entity @e[name=AyanamiKun,distance=..5] ('AyanamiKun' is the name of my friend who helped me testing this).

Then place a comparator after the command block and run that into the structure (load) block which should load the structure you need.

Hope this could still help!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome