Compare commits

...

38 Commits

Author SHA1 Message Date
tastybento 93e3152efc Improved errors. 2024-01-21 08:24:40 -08:00
tastybento 0fc5857a4a Added mobs to biomes 2024-01-21 08:21:30 -08:00
tastybento d1e771bad6 Version 1.8.0 2024-01-21 08:21:14 -08:00
tastybento 04a519ad51
Merge branch 'master' into develop 2024-01-20 07:48:02 -08:00
tastybento 3fc14f5cd8 Update to latest Spigot API 2024-01-13 09:29:53 -08:00
tastybento 8ce5cc0e3c
Update pom.xml 1.7.5 2024-01-13 07:09:18 -08:00
tastybento 15c2cea475 BentoBox 2.0.0 2023-11-12 13:53:05 -08:00
tastybento a7eeef7edc Code clean up. 2023-09-19 22:15:46 -07:00
tastybento ca4f1a3f43
Merge branch 'master' into develop 2023-09-19 21:52:51 -07:00
tastybento 6bc1c5e4bc Merge branch 'develop' of https://github.com/BentoBoxWorld/Greenhouses.git into develop 2023-09-19 21:48:54 -07:00
tastybento 53cb40e7c4 Fixes mob spawning when no maxmob value given.
Found while doing #108
2023-09-19 21:48:45 -07:00
tastybento e05e2806fe
Update pom.xml 2023-07-10 21:44:43 -07:00
tastybento 02c2135501 Added distribution required for Github Action 2023-06-24 13:55:46 -07:00
tastybento 605144e9f9 Update Github Action build script 2023-06-24 13:03:05 -07:00
tastybento 3f4647b547 Refactor to reduce complexity 2023-06-04 17:44:01 -07:00
tastybento e75780e710 Refactor to reduce complexity 2023-06-04 17:36:08 -07:00
tastybento 7e4f0764e6 Reduced complexity 2023-06-04 09:19:15 -07:00
tastybento 398c8e91d5 Minor typos and grammar fixes 2023-06-04 09:11:15 -07:00
tastybento 2eed3dcd56 Refactored to reduce complexity 2023-06-04 09:03:38 -07:00
tastybento 3dd950459f Update surefire plugin 2023-06-04 08:57:01 -07:00
tastybento cce4a655c6 Refactored to reduce complexity 2023-06-04 08:55:02 -07:00
tastybento a2c2975329 Version 1.7.4 2023-06-04 08:46:33 -07:00
tastybento e6a1cd17bb Removed static getInstance usage 2023-06-04 08:44:55 -07:00
BONNe db5ef4d5da
Create plugin.yml (#106)
* Create plugin.yml

* Update pom.xml

* Update GreenhousesPladdon.java
2023-04-08 18:39:46 +03:00
tastybento ac1d6e6638 Remove debug 2023-03-26 10:25:40 -07:00
BONNe 3740268dfc
Update to new Bukkit Loader 2023-03-26 14:04:06 +03:00
tastybento 308dc225cd Remove unused imports 2023-03-18 11:17:52 -04:00
tastybento 95474d6c53 Fixed maxmobs typo instead of maxmob 2023-03-16 22:40:43 -04:00
tastybento d2801dcd75 Fixes help text for user command.
Fixes #105
2023-03-10 08:50:18 -08:00
tastybento e4bbb70acb Added tests to cover #99 2023-03-01 18:30:35 -08:00
tastybento a4fc49689b Use updated Bucket event 2023-03-01 17:59:10 -08:00
tastybento 66270cf3e7 Add max mobs option #99 2023-03-01 08:26:34 -08:00
tastybento 4351247de2 Updated ReadMe 2023-02-25 08:22:44 -08:00
tastybento 9e407e659e Address bugs reported by SonarCloud 2023-02-09 17:27:57 -08:00
tastybento d6df904fbc Updated Jacoco POM entry 2023-02-09 17:09:21 -08:00
tastybento 9af8816995 Merge branch 'develop' of https://github.com/BentoBoxWorld/Greenhouses.git into develop 2023-02-09 17:08:13 -08:00
tastybento ce0eeae546
Add ${argLine} to get jacoco coverage 2023-02-09 15:18:43 -08:00
tastybento cf276bbb24 Version 1.7.3 2023-01-01 22:31:46 -08:00
3 changed files with 80 additions and 7 deletions

View File

@ -46,12 +46,12 @@
<java.version>17</java.version>
<powermock.version>2.0.9</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.19.3-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.21.0</bentobox.version>
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>2.0.0-SNAPSHOT</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- This allows to change between versions and snapshots. -->
<build.version>1.7.4</build.version>
<build.version>1.8.0</build.version>
<build.number>-LOCAL</build.number>
<sonar.projectKey>BentoBoxWorld_Greenhouses</sonar.projectKey>
<sonar.organization>bentobox-world</sonar.organization>
@ -259,6 +259,8 @@
<!-- This is required to prevent Jacoco from adding
synthetic fields to a JavaBean class (causes errors in testing) -->
<exclude>**/*Names*</exclude>
<!-- Prevents the Material is too large to mock error -->
<exclude>org/bukkit/Material*</exclude>
</excludes>
</configuration>
<executions>

View File

@ -35,6 +35,8 @@ biomes:
# Entity name: % chance:Block on which the mob will spawn
mobs:
SQUID: 10:WATER
GLOW_SQUID: 5:WATER
TURTLE: 10:SAND
# The minimum number of blocks each mob requires.
# Mobs will not spawn if there is more than 1 per this number of
# blocks in the greenhouse. e.g., in this case only 2 mobs will spawn if the
@ -53,6 +55,9 @@ biomes:
SAND: 1
watercoverage: 50
icecoverage: 10
mobs:
SQUID: 10:WATER
GLOW_SQUID: 10:WATER
ThreeWolfMoon:
friendlyname: "Three Wolf Moon Forest"
# Could do with more wolves, but the magic works with 3.
@ -67,7 +72,9 @@ biomes:
plants:
TALL_GRASS: 10:GRASS_BLOCK
mobs:
WOLF: 10:SNOW
WOLF: 15:SNOW
FOX: 15:GRASS_BLOCK
RABBIT: 7:GRASS_BLOCK
moblimit: 9
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
@ -87,6 +94,7 @@ biomes:
TALL_GRASS: 10:GRASS_BLOCK
mobs:
RABBIT: 10:SNOW
FOX: 7:GRASS_BLOCK
moblimit: 9
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
@ -115,6 +123,14 @@ biomes:
- DIRT:30:SAND:SAND
- GRASS_BLOCK:30:SAND:SAND
- COARSE_DIRT:30:GRAVEL:SAND
mobs:
RABBIT: 10:SAND
HUSK: 10:SAND
moblimit: 9
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
# If this value is not given, there is no maximum.
maxmobs: 20
FOREST:
friendlyname: "Flowery forest"
biome: FLOWER_FOREST
@ -129,6 +145,17 @@ biomes:
ORANGE_TULIP: 2:GRASS_BLOCK
SUNFLOWER: 4:GRASS_BLOCK
TALL_GRASS: 20:GRASS_BLOCK
mobs:
SHEEP: 10:GRASS_BLOCK
CHICKEN: 7:GRASS_BLOCK
PIG: 10:GRASS_BLOCK
COW: 10:GRASS_BLOCK
WOLF: 5:GRASS_BLOCK
moblimit: 9
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
# If this value is not given, there is no maximum.
maxmobs: 20
NETHER:
friendlyname: "&cNether"
biome: NETHER_WASTES
@ -164,6 +191,9 @@ biomes:
watercoverage: 0
mobs:
SKELETON: 10:SOUL_SAND
GHAST: 10:SOUL_SAND
ENDERMAN: 1:SOUL_SAND
STRIDER: 20:LAVA
moblimit: 9
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
@ -234,6 +264,10 @@ biomes:
FERN: 20:GRASS_BLOCK
TALL_GRASS: 20:GRASS_BLOCK
COCOA: 10:JUNGLE_LOG
mobs:
PARROT: 30:GRASS_BLOCK
CHICKEN: 20:GRASS_BLOCK
PANDA: 1:GRASS_BLOCK
MUSHROOM_FIELDS:
friendlyname: "Mushroom Fields"
biome: MUSHROOM_FIELDS
@ -261,7 +295,13 @@ biomes:
watercoverage: 95
mobs:
SQUID: 10:WATER
DROWNED: 1:WATER
COD: 40:WATER
DOLPHIN: 20:WATER
SQUID: 20:WATER
GLOW_SQUID: 10:WATER
moblimit: 9
maxmobs: 20
PLAINS:
friendlyname: "Horse Plains"
biome: PLAINS
@ -272,7 +312,12 @@ biomes:
plants:
TALL_GRASS: 10:GRASS_BLOCK
mobs:
HORSE: 10:GRASS_BLOCK
HORSE: 18:GRASS_BLOCK
DONKEY: 2:GRASS_BLOCK
COW: 20:GRASS_BLOCK
CHICKEN: 25:GRASS_BLOCK
PIG: 25:GRASS_BLOCK
SHEEP: 25:GRASS_BLOCK
moblimit: 1
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
@ -293,6 +338,15 @@ biomes:
# So, for below, dirt has a 50% chance of changing into clay if it is next to water!
conversion-list:
- DIRT:50:CLAY:WATER
mobs:
SALMON: 10:WATER
SQUID: 10:WATER
GLOW_SQUID: 5:WATER
moblimit: 1
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
# If this value is not given, there is no maximum.
maxmobs: 10
SAVANNA:
biome: SAVANNA
icon: ACACIA_LEAVES
@ -303,6 +357,18 @@ biomes:
GRASS_BLOCK: 4
plants:
TALL_GRASS: 10:GRASS_BLOCK
mobs:
HORSE: 2:GRASS_BLOCK
DONKEY: 2:GRASS_BLOCK
COW: 20:GRASS_BLOCK
CHICKEN: 25:GRASS_BLOCK
PIG: 25:GRASS_BLOCK
SHEEP: 25:GRASS_BLOCK
moblimit: 1
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
# If this value is not given, there is no maximum.
maxmobs: 10
SWAMP:
friendlyname: "&2Slimy Swamp"
biome: SWAMP
@ -321,6 +387,7 @@ biomes:
LILY_PAD: 5:WATER
mobs:
SLIME: 5:WATER
FROG: 20:WATER
moblimit: 3
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.
@ -344,6 +411,7 @@ biomes:
mobs:
skeleton: 5:STONE
glow_squid: 5:WATER
BAT: 10:STONE
moblimit: 5
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
# the greenhouse at once. Spawning will stop when this limit is reached.

View File

@ -53,9 +53,12 @@ greenhouses:
FAIL_BAD_WALL_BLOCKS: "&c Wall contains disallowed blocks!"
FAIL_BELOW: "&c You must be inside the greenhouse to try to make it"
FAIL_BLOCKS_ABOVE: "&c There can be no blocks above the greenhouse! Red glass blocks should show the problem blocks."
FAIL_HOLE_IN_ROOF: "&c There is a hole in the roof or it is not flat! Red glass blocks should show the problem."
FAIL_HOLE_IN_ROOF: |
&c There is a hole in the roof or it is not flat!
&c Red glass blocks should show the problem.
&c Make sure you are inside your greenhouse to make it.
FAIL_HOLE_IN_WALL: "&c There is a hole in the wall!"
FAIL_NO_ROOF: "&c There seems to be no roof!"
FAIL_NO_ROOF: "&c There seems to be no roof! Make sure you are inside the greenhouse to make it."
FAIL_TOO_MANY_DOORS: "&c You cannot have more than 4 doors in the greenhouse!"
FAIL_TOO_MANY_HOPPERS: "&c Only one hopper is allowed in the walls or roof."
FAIL_UNEVEN_WALLS: "&c The walls are uneven. Red glass blocks should show the problem blocks."