Loading...
play.ccnetmc.com
Click to copy IP
Loading...
discord.gg/Xn35DhyPQq
Click to join
Avatar
Welcome to CCNet!
To join our community, please login or register!
Internet Explorer: Internet Explorer is not supported. Please upgrade to a more modern browser.
Experimental Plugin Dev Blog #3: TownyBuildings
galacticwarrior9 Admin Member
36 posts
20 topics
4 months ago

In the previous dev blogs (#1 and #2), I introduced CampaignWar, a custom war plugin in development that is designed for its own gamemode. But this gamemode is not only about testing changes to conflict. Whereas CampaignWar overhauls how wars are fought, another custom plugin – TownyBuildings seeks to give a purpose to building inside towns.


Overview

AD_4nXcuU11c3Sgejl-ThylfC9ZPuY8MtYmV-Kdl_2MT7fP9249FK512YCc7Kxy6MORIwlcIZM1dD2X_m5vp11O-iAKOAsgtXXH1qsPvOBzQDFj3zte0qypUoc-ODJ1Re_jP_XJgJyK_yfL7VzUpALrZ_TGc3tJV?key=YoJseypBAaai0VIvq0OmMw

At the highest level of abstraction, TownyBuildings could be thought of as “Movecraft but for buildings”. This comparison is not entirely accurate, but neatly captures the general concept: player-built structures - given some time, and so long as they satisfy certain (generous) block requirements¹ - can be converted into functional structures that have some utility.

Fundamentally, buildings take input items and transform them into some form of output. This output could be other items, the unlocking of mechanics for the town, or modifiers for nearby buildings. Most buildings can be upgraded to a higher level, improving their output. Naturally, higher level buildings require more blocks and time to build.

AD_4nXc0p-xqIpgL8_30Z7URGElulo2rUD6LDn2pUDrePZYX2j1vGxhka7gpER7HDdnXG602oMoOuqZcXrqrKv8wUp_vsxtIO-Ykd2d5ScbcWAnCW6w0fMqHyFtMBTrk02Wqzhikk4A82kZPfBFRnN2PnjNiloji?key=YoJseypBAaai0VIvq0OmMw

Some buildings can choose from different production methods, which change their input and output. For example, a higher-tier production method might increase output at the cost of more expensive input.


Production Buildings

AD_4nXdS8rJQy-wzkeN2HyjiZY5CtqTjOuUPoXSChevuDkDgD-NbubQTq3rssDrwG0N94K2H5SlHsgMnFmajPDSUjPtvzwU0N4AeaCLVVWkTWMNlcXCgaT1P8qpBFVbIO1THeqALDx5Z34FfMWR67yRZxJG5Vmp6?key=YoJseypBAaai0VIvq0OmMw

Production buildings produce items from input items. Several production buildings require a resource to be ‘discovered’ in the town. Resources are surveyed on a chunk-by-chunk basis, and the building must be created on the chunk the resource was discovered on. Of course, the type of resource discovered is influenced by the biome of the chunk, e.g. oil is found most frequently in desert chunks.

Each discovered resource also has a random ‘size’, which determines the maximum level that the building can reach. For example, a Coal Mine building built on a size 10 Coal Deposit can be upgraded up to level 10.

AD_4nXdsrIHt6_XE_kg5dx80ixtq-B6LeeLqKCbWwiH6-vF_LnhJk2DB1MBf6-14I5K5KVydafdx40zP7yv0Sf8QrDvIlZRBI1golOnYNQbFE4TsZKOGpspz_rCztj81NfB2iBnVZaIJZAmyT_DPwwdmMSy-YUeu?key=YoJseypBAaai0VIvq0OmMw
This Coal Mine does not have enough workers, so its efficiency will suffer.

Efficiency’ determines how much of the production building’s capacity is utilised. A building running at 50% efficiency consumes half the input items and produces half the output items compared to one operating at 100% efficiency. Efficiency has two main determinants: modifiers from nearby buildings, and how many virtual ‘workers’ it has employed. For instance, if a building has only half the required workers, it will operate at 50% efficiency.

House Buildings
AD_4nXeLQL3YcSTXT8ui7KvQDunY0h5NHE38V1SjZUgSf-3z1Px3oYKLLCHla56wMvCG8P3RCyNyi1wU3q5lR7KqzqJjLkaAmnE2XWZVvqdAWx6VgAZda01UpfAGgzxmQuXZupHcHbpiEyU1HlrF9dsgVmsXSXg?key=YoJseypBAaai0VIvq0OmMw

Buildings need workers, but where do they come from? The answer is houses, and their production methods determine how many and what class of workers live inside them. There are three classes of workers, divided by wealth. Low wealth workers will be content with basic foodstuffs such as bread, whereas higher wealth workers will demand more ‘’luxuries” such as sugar. Under-supplied houses can still hold workers, although their maximum capacity will suffer.

Utility Buildings

Not all buildings produce items - utility buildings instead unlock a mechanic for the town or have some other function. Several probable implementations include:

  • A “Watchtower”, which detects nearby hostile players
  • A “Tavern”, which consumes Brewery drinks to increase the capacity of nearby houses
  • A “Bastion”, which strengthens a town’s citadel plots
  • A “Naval Base”, which a town requires before warships can be piloted inside its province
  • A “Barracks”, which allows defenders to teleport to the town if its province is under attack (similar to a CampaignWar FOB). Capturing this building may be a strategic objective for attackers.


Interfaces

AD_4nXfaEjoIjRClCCzzq352Viqglmu7Y8OrMRRjj3ISG0VD-dgzBfPdrBoyvRtvQh_QCZCDNWgzeAuJVuuU6UJkxuxPfhWb7Z8B8r5B0993lnUrRMt5orbgI-d4dfNEbhUCq82FncaiYy2AO_iMFO3zu9OUOMI-?key=YoJseypBAaai0VIvq0OmMw

We get it - commands are clunky. So we’ve created an extensive network of GUIs to help you navigate the plugin, some of which you have seen in this post. Moreover, every building has an NPC which you can right-click to open its management menu.

Conclusion

What you have seen here is an early preview of the plugin. The list of buildings that will be available has not been finalised, and the plugin’s progression aspect is still being designed. Regarding the latter, it is probable that buildings will be involved in levelling up a town.

If you have any feedback or concerns about the plugin so far, don’t hesitate to reply to this thread with them. Feel free to share building suggestions in the replies too.


¹ When initially constructing a building on a plot, the plugin will scan and count all blocks that are above a certain height inside it. Afterwards, you can assign more plots to the building. Blocks in these plots will also be counted when the plugin decides whether a building meets the requirements to upgrade.



Last edited: 4 months ago x 3
ContDJ Helper Member
12 posts
2 topics
4 months ago

This is interesting 



x 1
Dhiras Member
4 posts
0 topics
4 months ago

This feels like clash of clans, IT'S GREAT!! love it. 



CosmicKingSimp Member
2 posts
0 topics
4 months ago

I love towny buildings! When can we test? 🥺



Ashes43 Member
34 posts
9 topics
4 months ago

There should be a video guide explaining each of these because my brain is fried just reading this. Looks awesome!



x 1
Csipok_ Member
4 posts
0 topics
4 months ago

OH... MY... GOSH!!!
These updates are amazing. #1 and #2 posts you made that players who previously had nothing to do with pvp are actually competent. And the functional buildings... I love it! ♥



Csipok
Sad_Zigzag Member
1 posts
0 topics
4 months ago

Really love that ccnet is not just server with war content but it's designed in the way every player can help their nation and become a part of history. I love building and Im happy to see that with this improvements buildings could also get more functional.



Perpltxed Moderator
17 posts
3 topics
4 months ago

Looking forward to see these in action



Onidalas Member
3 posts
0 topics
4 months ago

Very good, looks like minecolonies 



Que miras bo

MVPan Member
3 posts
0 topics
4 months ago

I gotta test this. Looks sick as hell