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 #10 - TownyBuildings Part 3
galacticwarrior9 Admin Member
41 posts
24 topics
Discord: Zaify#5349
Minecraft: galacticwarrior9
1 day ago

Click here to read the previous dev blog (#9): Market Features and Deliveries

Welcome to the tenth experimental plugin dev blog, where I document the progress made on CampaignWar - indeed, we still do not have a proper name. In this blog, I detail further progress made on TownyBuildings. This is a custom plugin that has previously been covered in blogs #3 and #5, so be sure to read these if you have not already done so.

A design issue we encountered was that Slimefun felt like a parallel system to TownyBuildings rather than a complementary one. This led us to the idea of enhancing TownyBuildings to an extent such that it could replace those features of Slimefun that we were intending to retain. This entailed implementing a power system and factory buildings that function similarly to Slimefun machines.

Power is fairly straightforward. Currently, it is produced at a Power Plant building that accepts various types of fuel. Here we supply it with biogasoline:

Power is consumed by factories. An example is the Chemical Plant. Here, we supply it with Sulfur to produce Sulfuric Acid, a crafting ingredient for ammunition propellant:

Notice how both buildings have "processing slots". Each slot is equivalent to an individual Slimefun machine. Upgrading a building will unlock additional processing slots. The speed of the processing slots, on the other hand, depends on both the building's efficiency (you may recall this concept from blog #5) and production method (which acts as the building's upkeep here). For example, a production method which consumes industrial lubricant will cause the processing slots to run more quickly than the default method. 

Note: "Production Time" here only refers to how often the building upkeep is taken.

Normally, excess power generated by a Power Plant will be lost. However, you can build a Power Storage to store it for later use instead. This is similar to a Slimefun capacitor. Power plants also have a limited range in which they can supply power, but this can be extended by building a Power Relay.

Below, notice the Power Plant supplying power to the Power Storage (dark yellow line) and Chemical Plant (green line). The Power Storage also transfers some of its power to the Chemical Plant (blue line).

 


 

I will note the usual disclaimers: this is under development and everything shown is subject to change. The latter especially applies here, as the concept may be dropped or changed significantly after playtesting begins. As always, let me know if you have any comments, suggestions or concerns in the replies!



Last edited: 1 day ago x 6
Perpltxed Moderator
21 posts
3 topics
Minecraft: Perpltxed
1 day ago

Lets go finally