mirror of
https://github.com/BentoBoxWorld/Greenhouses.git
synced 2024-09-30 07:37:36 +02:00
Compare commits
40 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
359354737f | ||
|
a51e9860f5 | ||
|
93e3152efc | ||
|
0fc5857a4a | ||
|
d1e771bad6 | ||
|
04a519ad51 | ||
|
3fc14f5cd8 | ||
|
8ce5cc0e3c | ||
|
15c2cea475 | ||
|
a7eeef7edc | ||
|
ca4f1a3f43 | ||
|
6bc1c5e4bc | ||
|
53cb40e7c4 | ||
|
e05e2806fe | ||
|
02c2135501 | ||
|
605144e9f9 | ||
|
3f4647b547 | ||
|
e75780e710 | ||
|
7e4f0764e6 | ||
|
398c8e91d5 | ||
|
2eed3dcd56 | ||
|
3dd950459f | ||
|
cce4a655c6 | ||
|
a2c2975329 | ||
|
e6a1cd17bb | ||
|
db5ef4d5da | ||
|
ac1d6e6638 | ||
|
3740268dfc | ||
|
308dc225cd | ||
|
95474d6c53 | ||
|
d2801dcd75 | ||
|
e4bbb70acb | ||
|
a4fc49689b | ||
|
66270cf3e7 | ||
|
4351247de2 | ||
|
9e407e659e | ||
|
d6df904fbc | ||
|
9af8816995 | ||
|
ce0eeae546 | ||
|
cf276bbb24 |
8
pom.xml
8
pom.xml
@ -46,12 +46,12 @@
|
|||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<powermock.version>2.0.9</powermock.version>
|
<powermock.version>2.0.9</powermock.version>
|
||||||
<!-- More visible way how to change dependency versions -->
|
<!-- More visible way how to change dependency versions -->
|
||||||
<spigot.version>1.19.3-R0.1-SNAPSHOT</spigot.version>
|
<spigot.version>1.20.4-R0.1-SNAPSHOT</spigot.version>
|
||||||
<bentobox.version>1.21.0</bentobox.version>
|
<bentobox.version>2.0.0-SNAPSHOT</bentobox.version>
|
||||||
<!-- Revision variable removes warning about dynamic version -->
|
<!-- Revision variable removes warning about dynamic version -->
|
||||||
<revision>${build.version}-SNAPSHOT</revision>
|
<revision>${build.version}-SNAPSHOT</revision>
|
||||||
<!-- This allows to change between versions and snapshots. -->
|
<!-- 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>
|
<build.number>-LOCAL</build.number>
|
||||||
<sonar.projectKey>BentoBoxWorld_Greenhouses</sonar.projectKey>
|
<sonar.projectKey>BentoBoxWorld_Greenhouses</sonar.projectKey>
|
||||||
<sonar.organization>bentobox-world</sonar.organization>
|
<sonar.organization>bentobox-world</sonar.organization>
|
||||||
@ -259,6 +259,8 @@
|
|||||||
<!-- This is required to prevent Jacoco from adding
|
<!-- This is required to prevent Jacoco from adding
|
||||||
synthetic fields to a JavaBean class (causes errors in testing) -->
|
synthetic fields to a JavaBean class (causes errors in testing) -->
|
||||||
<exclude>**/*Names*</exclude>
|
<exclude>**/*Names*</exclude>
|
||||||
|
<!-- Prevents the Material is too large to mock error -->
|
||||||
|
<exclude>org/bukkit/Material*</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -10,9 +10,13 @@ import world.bentobox.bentobox.api.addons.Pladdon;
|
|||||||
*/
|
*/
|
||||||
public class GreenhousesPladdon extends Pladdon
|
public class GreenhousesPladdon extends Pladdon
|
||||||
{
|
{
|
||||||
|
private Addon addon;
|
||||||
@Override
|
@Override
|
||||||
public Addon getAddon()
|
public Addon getAddon()
|
||||||
{
|
{
|
||||||
return new Greenhouses();
|
if (addon == null) {
|
||||||
|
addon = new Greenhouses();
|
||||||
|
}
|
||||||
|
return addon;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,8 @@ biomes:
|
|||||||
# Entity name: % chance:Block on which the mob will spawn
|
# Entity name: % chance:Block on which the mob will spawn
|
||||||
mobs:
|
mobs:
|
||||||
SQUID: 10:WATER
|
SQUID: 10:WATER
|
||||||
|
GLOW_SQUID: 5:WATER
|
||||||
|
TURTLE: 10:SAND
|
||||||
# The minimum number of blocks each mob requires.
|
# The minimum number of blocks each mob requires.
|
||||||
# Mobs will not spawn if there is more than 1 per this number of
|
# 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
|
# blocks in the greenhouse. e.g., in this case only 2 mobs will spawn if the
|
||||||
@ -44,6 +46,30 @@ biomes:
|
|||||||
# the greenhouse at once. Spawning will stop when this limit is reached.
|
# the greenhouse at once. Spawning will stop when this limit is reached.
|
||||||
# If this value is not given, there is no maximum.
|
# If this value is not given, there is no maximum.
|
||||||
maxmobs: 5
|
maxmobs: 5
|
||||||
|
MANGROVE_SWAMP:
|
||||||
|
# Credit: angelknight89
|
||||||
|
friendlyname: "Mangrove Swamp"
|
||||||
|
biome: MANGROVE_SWAMP
|
||||||
|
icon: LILY_PAD
|
||||||
|
priority: 19
|
||||||
|
contents:
|
||||||
|
GRASS_BLOCK: 4
|
||||||
|
MANGROVE_ROOTS: 3
|
||||||
|
MANGROVE_LEAVES: 4
|
||||||
|
# 50% water coverage required
|
||||||
|
watercoverage: 50
|
||||||
|
conversions:
|
||||||
|
GRASS_BLOCK: 50:MUD:GRASS_BLOCK
|
||||||
|
plants:
|
||||||
|
MOSS_CARPET: 5:GRASS_BLOCK
|
||||||
|
LILY_PAD: 5:WATER
|
||||||
|
mobs:
|
||||||
|
FROG: 5:MUD
|
||||||
|
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.
|
||||||
|
# If this value is not given, there is no maximum.
|
||||||
|
maxmobs: 10
|
||||||
Snowy_beach:
|
Snowy_beach:
|
||||||
friendlyname: "Snowy beach"
|
friendlyname: "Snowy beach"
|
||||||
biome: SNOWY_BEACH
|
biome: SNOWY_BEACH
|
||||||
@ -53,6 +79,9 @@ biomes:
|
|||||||
SAND: 1
|
SAND: 1
|
||||||
watercoverage: 50
|
watercoverage: 50
|
||||||
icecoverage: 10
|
icecoverage: 10
|
||||||
|
mobs:
|
||||||
|
SQUID: 10:WATER
|
||||||
|
GLOW_SQUID: 10:WATER
|
||||||
ThreeWolfMoon:
|
ThreeWolfMoon:
|
||||||
friendlyname: "Three Wolf Moon Forest"
|
friendlyname: "Three Wolf Moon Forest"
|
||||||
# Could do with more wolves, but the magic works with 3.
|
# Could do with more wolves, but the magic works with 3.
|
||||||
@ -67,7 +96,9 @@ biomes:
|
|||||||
plants:
|
plants:
|
||||||
TALL_GRASS: 10:GRASS_BLOCK
|
TALL_GRASS: 10:GRASS_BLOCK
|
||||||
mobs:
|
mobs:
|
||||||
WOLF: 10:SNOW
|
WOLF: 15:SNOW
|
||||||
|
FOX: 15:GRASS_BLOCK
|
||||||
|
RABBIT: 7:GRASS_BLOCK
|
||||||
moblimit: 9
|
moblimit: 9
|
||||||
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
||||||
# the greenhouse at once. Spawning will stop when this limit is reached.
|
# the greenhouse at once. Spawning will stop when this limit is reached.
|
||||||
@ -87,6 +118,7 @@ biomes:
|
|||||||
TALL_GRASS: 10:GRASS_BLOCK
|
TALL_GRASS: 10:GRASS_BLOCK
|
||||||
mobs:
|
mobs:
|
||||||
RABBIT: 10:SNOW
|
RABBIT: 10:SNOW
|
||||||
|
FOX: 7:GRASS_BLOCK
|
||||||
moblimit: 9
|
moblimit: 9
|
||||||
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
||||||
# the greenhouse at once. Spawning will stop when this limit is reached.
|
# the greenhouse at once. Spawning will stop when this limit is reached.
|
||||||
@ -115,6 +147,14 @@ biomes:
|
|||||||
- DIRT:30:SAND:SAND
|
- DIRT:30:SAND:SAND
|
||||||
- GRASS_BLOCK:30:SAND:SAND
|
- GRASS_BLOCK:30:SAND:SAND
|
||||||
- COARSE_DIRT:30:GRAVEL: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:
|
FOREST:
|
||||||
friendlyname: "Flowery forest"
|
friendlyname: "Flowery forest"
|
||||||
biome: FLOWER_FOREST
|
biome: FLOWER_FOREST
|
||||||
@ -129,6 +169,17 @@ biomes:
|
|||||||
ORANGE_TULIP: 2:GRASS_BLOCK
|
ORANGE_TULIP: 2:GRASS_BLOCK
|
||||||
SUNFLOWER: 4:GRASS_BLOCK
|
SUNFLOWER: 4:GRASS_BLOCK
|
||||||
TALL_GRASS: 20: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:
|
NETHER:
|
||||||
friendlyname: "&cNether"
|
friendlyname: "&cNether"
|
||||||
biome: NETHER_WASTES
|
biome: NETHER_WASTES
|
||||||
@ -164,6 +215,9 @@ biomes:
|
|||||||
watercoverage: 0
|
watercoverage: 0
|
||||||
mobs:
|
mobs:
|
||||||
SKELETON: 10:SOUL_SAND
|
SKELETON: 10:SOUL_SAND
|
||||||
|
GHAST: 10:SOUL_SAND
|
||||||
|
ENDERMAN: 1:SOUL_SAND
|
||||||
|
STRIDER: 20:LAVA
|
||||||
moblimit: 9
|
moblimit: 9
|
||||||
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
||||||
# the greenhouse at once. Spawning will stop when this limit is reached.
|
# the greenhouse at once. Spawning will stop when this limit is reached.
|
||||||
@ -234,6 +288,10 @@ biomes:
|
|||||||
FERN: 20:GRASS_BLOCK
|
FERN: 20:GRASS_BLOCK
|
||||||
TALL_GRASS: 20:GRASS_BLOCK
|
TALL_GRASS: 20:GRASS_BLOCK
|
||||||
COCOA: 10:JUNGLE_LOG
|
COCOA: 10:JUNGLE_LOG
|
||||||
|
mobs:
|
||||||
|
PARROT: 30:GRASS_BLOCK
|
||||||
|
CHICKEN: 20:GRASS_BLOCK
|
||||||
|
PANDA: 1:GRASS_BLOCK
|
||||||
MUSHROOM_FIELDS:
|
MUSHROOM_FIELDS:
|
||||||
friendlyname: "Mushroom Fields"
|
friendlyname: "Mushroom Fields"
|
||||||
biome: MUSHROOM_FIELDS
|
biome: MUSHROOM_FIELDS
|
||||||
@ -261,7 +319,13 @@ biomes:
|
|||||||
watercoverage: 95
|
watercoverage: 95
|
||||||
mobs:
|
mobs:
|
||||||
SQUID: 10:WATER
|
SQUID: 10:WATER
|
||||||
|
DROWNED: 1:WATER
|
||||||
|
COD: 40:WATER
|
||||||
|
DOLPHIN: 20:WATER
|
||||||
|
SQUID: 20:WATER
|
||||||
|
GLOW_SQUID: 10:WATER
|
||||||
moblimit: 9
|
moblimit: 9
|
||||||
|
maxmobs: 20
|
||||||
PLAINS:
|
PLAINS:
|
||||||
friendlyname: "Horse Plains"
|
friendlyname: "Horse Plains"
|
||||||
biome: PLAINS
|
biome: PLAINS
|
||||||
@ -272,7 +336,12 @@ biomes:
|
|||||||
plants:
|
plants:
|
||||||
TALL_GRASS: 10:GRASS_BLOCK
|
TALL_GRASS: 10:GRASS_BLOCK
|
||||||
mobs:
|
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
|
moblimit: 1
|
||||||
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
||||||
# the greenhouse at once. Spawning will stop when this limit is reached.
|
# the greenhouse at once. Spawning will stop when this limit is reached.
|
||||||
@ -293,6 +362,15 @@ biomes:
|
|||||||
# So, for below, dirt has a 50% chance of changing into clay if it is next to water!
|
# So, for below, dirt has a 50% chance of changing into clay if it is next to water!
|
||||||
conversion-list:
|
conversion-list:
|
||||||
- DIRT:50:CLAY:WATER
|
- 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:
|
SAVANNA:
|
||||||
biome: SAVANNA
|
biome: SAVANNA
|
||||||
icon: ACACIA_LEAVES
|
icon: ACACIA_LEAVES
|
||||||
@ -303,6 +381,18 @@ biomes:
|
|||||||
GRASS_BLOCK: 4
|
GRASS_BLOCK: 4
|
||||||
plants:
|
plants:
|
||||||
TALL_GRASS: 10:GRASS_BLOCK
|
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:
|
SWAMP:
|
||||||
friendlyname: "&2Slimy Swamp"
|
friendlyname: "&2Slimy Swamp"
|
||||||
biome: SWAMP
|
biome: SWAMP
|
||||||
@ -321,6 +411,7 @@ biomes:
|
|||||||
LILY_PAD: 5:WATER
|
LILY_PAD: 5:WATER
|
||||||
mobs:
|
mobs:
|
||||||
SLIME: 5:WATER
|
SLIME: 5:WATER
|
||||||
|
FROG: 20:WATER
|
||||||
moblimit: 3
|
moblimit: 3
|
||||||
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
||||||
# the greenhouse at once. Spawning will stop when this limit is reached.
|
# the greenhouse at once. Spawning will stop when this limit is reached.
|
||||||
@ -344,6 +435,7 @@ biomes:
|
|||||||
mobs:
|
mobs:
|
||||||
skeleton: 5:STONE
|
skeleton: 5:STONE
|
||||||
glow_squid: 5:WATER
|
glow_squid: 5:WATER
|
||||||
|
BAT: 10:STONE
|
||||||
moblimit: 5
|
moblimit: 5
|
||||||
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
# Maxmobs - this is the maximum number of greenhouse-spawed mobs allowed in
|
||||||
# the greenhouse at once. Spawning will stop when this limit is reached.
|
# the greenhouse at once. Spawning will stop when this limit is reached.
|
||||||
|
@ -53,9 +53,12 @@ greenhouses:
|
|||||||
FAIL_BAD_WALL_BLOCKS: "&c Wall contains disallowed blocks!"
|
FAIL_BAD_WALL_BLOCKS: "&c Wall contains disallowed blocks!"
|
||||||
FAIL_BELOW: "&c You must be inside the greenhouse to try to make it"
|
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_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_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_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_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."
|
FAIL_UNEVEN_WALLS: "&c The walls are uneven. Red glass blocks should show the problem blocks."
|
||||||
|
Loading…
Reference in New Issue
Block a user