mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2026-01-04 15:41:46 +00:00
2.0-PRE-2
This commit is contained in:
43
README.md
43
README.md
@@ -13,13 +13,10 @@ https://polymart.org/resource/customcrops.2625
|
||||
### How to compile
|
||||
Just compile it with gradle build. Some premium plugins are used as
|
||||
local libraries. If you don't need those integrations just remove them!
|
||||
Default ItemsAdder Config is also included in this project, which will
|
||||
provide a template and help you understand how this plugin works.
|
||||
|
||||
### Game Mechanics
|
||||
Crops will grow at a specified time which you will see in the config.\
|
||||
1000 is default (7am) As we know, Minecraft has 24000 ticks / Day\
|
||||
All crops will grow successively if their pot is watered.
|
||||
Crops will start growing at about 7am (Game Time).\
|
||||
Crops in watered pot would definitely grow a stage every day while those in dry pot have less chance.
|
||||
|
||||
### Season & Greenhouse
|
||||
Season is now an important part of StardewValley Farming System.
|
||||
@@ -30,10 +27,12 @@ Season change has two modes: Automatic and Command\
|
||||
You might use the command to change the season to sync another plugin's season, for example RealisticSeason.
|
||||
|
||||
### Fertilizer
|
||||
There are three templates of fertiziliers: \
|
||||
There are five templates of fertiziliers: \
|
||||
SpeedGrow: Crops have a small chance to grow two stages at a time\
|
||||
RetainingSoil: Pot have a small chance to retain its water after crops grow\
|
||||
QuailityCrops: When haveresting, players have a higher chance to get high quality crops.
|
||||
QuailityCrops: When haveresting, players have a higher chance to get high quality crops.\
|
||||
YieldIncreasing: When haveresting, players have a higher chance to get more crops.\
|
||||
Gigantic: Crops have a higher chance to be gigantic.
|
||||
|
||||
### Sprinkler & WateringCan
|
||||
Sprinkler is a semi-automatic way of watering pot. You can add water to sprinkler with
|
||||
@@ -41,34 +40,20 @@ water bucket or watering can. Max storage and range can be customized.\
|
||||
Watering-can also has its max storage and effective range. 1x1 1x3 3x3 and even 9x99 is supported!
|
||||
|
||||
### OverWeight
|
||||
If configurated, crops will still absorb water every day and have a very little chance to be OverWeight(gigantic) before it's dead.
|
||||
If configurated, crops have a very little chance to be OverWeight(gigantic) after they are ripe.
|
||||
|
||||
### Quality
|
||||
Crops have three qualities, if you don't want this feature just disable it in config.
|
||||
Crops have three qualities, if you don't want this feature just delete it in config.
|
||||
Quality is determined by the fertizilier players use and their luck!
|
||||
|
||||
### Harvest Repeatedly
|
||||
If configurated, crops can be harvested repeatedly and return to a specified stage.\
|
||||
This is useful for crops like grape.
|
||||
|
||||
### Crow and Scarecrow
|
||||
Crops have a little chance to be eaten by a crow.\
|
||||
A scarecrow would help the crops free of their attacks in one chunk.
|
||||
|
||||
### Highly Optimizied
|
||||
1.Crops only grow at the specified time and won't impact the performance in other times.\
|
||||
2.Growing judge is async and only the last step ** replace blcoks ** is sync.\
|
||||
3.Crops will not actually grow at the same time. It's laggy to replace so many blocks at the same time. They will grow in a random time(in seconds) which you can specified in the config after "grow-time"(7am default)\
|
||||
4.Four grow modes to choose.
|
||||
|
||||
### Commands
|
||||
/customcrops setseason [world] [season] # set a specified world's season\
|
||||
/customcrops reload # reload the plugin\
|
||||
/customcrops backup # back up the data\
|
||||
/customcrops forcegrow [world] # force a specified world's crops to grow a stage\
|
||||
/customcrops forcewater [world] # force a specified world's sprinklers to work\
|
||||
/customcrops forcesave [file] # save the cache to file
|
||||
|
||||
### Placeholders
|
||||
%customcrops_season% show the season in the world\
|
||||
%customcrops_season_[world]%\
|
||||
%customcrops_nextseason% show the days to the next season\
|
||||
%customcrops_nextseason_[world]%\
|
||||
%customcrops_current% show the days the current season has gone\
|
||||
%customcrops_current_[world]%
|
||||
Crops growing progress is distributed evenly to the whole day so there would not be large amount of blocks replacement at the same time.\
|
||||
Crops' data would be removed from file as soon as they are ripe, which would not affect your server performance in the long term.
|
||||
10
build.gradle
10
build.gradle
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'net.momirealms'
|
||||
version = '1.7-SNAPSHOT'
|
||||
version = '2.0-PRE-2'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -60,7 +60,7 @@ dependencies {
|
||||
compileOnly 'com.comphenix.protocol:ProtocolLib:4.8.0'
|
||||
compileOnly 'me.clip:placeholderapi:2.11.2'
|
||||
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.7'
|
||||
compileOnly 'com.github.LoneDev6:api-itemsadder:3.2.3c'
|
||||
compileOnly 'com.github.LoneDev6:api-itemsadder:3.2.3-r8'
|
||||
compileOnly 'com.palmergames.bukkit.towny:towny:0.98.2.0'
|
||||
compileOnly 'com.willfp:EcoSkills:1.72.0'
|
||||
compileOnly 'com.willfp:eco:6.38.3'
|
||||
@@ -70,6 +70,7 @@ dependencies {
|
||||
implementation('net.kyori:adventure-platform-bukkit:4.1.2')
|
||||
implementation("net.kyori:adventure-text-minimessage:4.11.0")
|
||||
implementation("de.tr7zw:item-nbt-api:2.10.0")
|
||||
implementation("org.bstats:bstats-bukkit:3.0.0")
|
||||
}
|
||||
|
||||
def targetJavaVersion = 16
|
||||
@@ -102,8 +103,9 @@ tasks.withType(JavaCompile) {
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate ('de.tr7zw', 'net.momirealms.customcrops.libs')
|
||||
relocate ('net.kyori', 'net.momirealms.customcrops.libs')
|
||||
relocate ('de.tr7zw', 'net.momirealms.customcrops.libs.de.tr7zw')
|
||||
relocate ('net.kyori', 'net.momirealms.customcrops.libs.net.kyori')
|
||||
relocate ('org.bstats', 'net.momirealms.customcrops.libs.org.bstats')
|
||||
}
|
||||
|
||||
tasks.register("delete", Delete).get().delete("build/libs/"+project.name+"-"+project.version+".jar")
|
||||
|
||||
Reference in New Issue
Block a user