Minecolonies & Supplyship/Supplycamp placement
Hey there, another Minecolonies progress update incoming.
For everyone who didn't play Minecolonies yet, a short explanation:
In minecolonies in order to start your own colony you need to obtain your townhall and the placement tool for the buildings.
Those two items you were always able to obtain through the supplyship or supplycamp.
Therefore, first you had to craft the Supplyship and Supplycamp using a simple minecraft recipe.
Then you had to search a big body of water and try to place it.
The supplyship placement item always checked in a rather complex way if in a certain distance of you a body of 32*20 water exists.
The supplycamp on the other side required a 16*17 space of flat land where it checks if the land is flat and no items are obstructing it, still, if you only had a 16*17 flat area you had to place the item at the exact location or it would not work.
Therefore, we recieved a lot of issues regarding this and it was necessary to change it.
Like that one:
https://github.com/Minecolonies/minecolonies/issues/1269
Now, previously we had already developed a tool which allows you to prerender certain structures in our mod - called the build-tool.
Which is explained in more detail in this video:
With the help of this tool you can paste structures in creative mode or let your builder build things in normal mode.
What I did in this case was creating an extra mode for this buildTool.
So I connected the supplyship/camp items opening the tool in this special mode which allows every user to paste this specific structure for free.
Now, only one thing was left, I had to make sure users don't paste those over the whole world.
For this I used the minecraft item statistic counter.
And I check every time if this certain player already has that stat > 0 before I let him place it again.
On placement i simply increase this counter and make sure he won't do that again.
Working out great =)
Until the next minecolonies update.
I can guarantee even more exciting things are coming in the near future =).
Posted on Utopian.io - Rewarding Open Source Contributors




Hey @raycoms I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]