Jump to content

[1.14] How do I make a placed block create a structure?


Recommended Posts

Posted

Hi everyone,

 

I am almost done with my mod that I only need for myself, I just can't grasp how to code one thing.

I need to code it so when a block is placed by a player, a structure appears instead of the block. I suppose I am meant to use the onBlockAdded method, but I can't understand, how it works. Could someone show me how to code it please? Also, how do I map the structure? Do i use XYZ coordinates?

 

Thank you for the response!

Posted

It would be really helpful if you could give me an example of such code and I would change the values to match the structure. Again, this mod is for my purposes only, I will not upload it anywhere if you are afraid of you doing someone else's work.

Posted
6 minutes ago, Luis_ST said:

1.14 is no longer supported on this forum.
Please update to a modern version of Minecraft to receive support.

haha I've written all my code in 1.14, too late to go back. 

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.