BentoBoxWorld / Greenhouses

BentoBox Add-on to enable personal biomes in a glass greenhouse
Eclipse Public License 2.0
13 stars 9 forks source link

Command /is greenhouse make #23

Open VozikCZE opened 5 years ago

VozikCZE commented 5 years ago

Description

Describe the bug

When I want to create biome beach, and I use command for this, it create biome Swamp. But the greenhouse does not meet the conditions of the greenhouse Swamp.

With GUI menu it works good.

Steps to reproduce the behavior

1) Build greenhouse Beach. 2) Type command /island greenhouse make beaches

Screenshots and videos

-

Expected behavior

It should create a Beach biome.

Environment

Server

Plugins

[10:36:25] [main/INFO]: [CHAT] Plugins (36): BentoBox, BlockVersion*, ChatInjector*, CompostingPlus, CustomOreGen, DeluxeMenus, EpicSpawners, Essentials, EssentialsChat, EssentialsSpawn, FastAsyncWorldEdit, FastFarmStopper, HeadDatabase*, Jetpack, Jobs, LuckPerms, Multiverse-Core, MultiVIP*, PlaceholderAPI*, ProtocolLib, ProtocolSupport, Scoreboard-revision*, SkinsRestorer, SkQuery, Skript, skUtilities*, SkyblockWorldEdit*, TitleManager*, TradePlus, UltimateStacker, VanillaDispenserPlus*, Vault, VillagerOptimiser, Voting*, WorldEdit, YourAuction

BentoBox setup

BentoBox and Addons
[10:36:40] [main/INFO]: [CHAT] Spouštění PAPER 1.14.4.
[10:36:40] [main/INFO]: [CHAT] Verze BentoBoxu: 1.6.0
[10:36:40] [main/INFO]: [CHAT] commands.bentobox.version.database
[10:36:40] [main/INFO]: [CHAT] Načtené herní světy:
[10:36:40] [main/INFO]: [CHAT] bskyblock_world (BSkyBlock): Svět, Nether, End
[10:36:40] [main/INFO]: [CHAT] Načtené addony:
[10:36:40] [main/INFO]: [CHAT] BSkyBlock 1.6.0 (ENABLED)
[10:36:40] [main/INFO]: [CHAT] Greenhouses 0.4.1-SNAPSHOT (ENABLED)
[10:36:40] [main/INFO]: [CHAT] Level 1.5.0 (ENABLED)
[10:36:40] [main/INFO]: [CHAT] Limits 0.2.2 (ENABLED)
Configuration

Additional context

Config of biomes beach and swamp:

  beaches:
    # The name of the icon. Can use & for color codes, e.g. &c
    friendlyname: "&2Písečná pláž"
    # The biome of the recipe. Allows multiple recipes for the same biome.
    biome: BEACH
    # The icon is shown in the panel. It must be a Bukkit Material
    icon: SAND
    # Priority is used if the greenhouse can be more than one biome. The highest
    # priority wins
    priority: 0
    # Contents - The minimum requirement for this biome.
    # Format is Material: Number of blocks
    contents:
      SAND: 4
    # The number of blocks in the greenhouse that must be water, ice or lava
    # Floor area * this % = number of blocks required
    watercoverage: 50
    # If the value is zero, then NO ice/water/lava is allowed
    # If the values are missing, or negative, then ice/water/lava is allowed, but not
    # required for the biome.
    # icecoverage: 0
    # lavacoverage: 0
    # Plants that can grow via the hopper/bonemeal system
    # Format is:
    # Material:Type(optional): % chance:Block type on which it can grow
    # Note that with really small greenhouses, melons and pumpkins can change
    # grass to dirt, which may break the eco system!
    plants:
      DEAD_BUSH: 5:SAND
    # Mobs that may spawn.
    # Format:
    # Entity name: % chance:Block on which the mob will spawn
    mobs:
      SQUID: 10:WATER
    # 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
    # greenhouse area is 18 blocks
    moblimit: 9
  SWAMP:
    friendlyname: "&2Bažina"
    biome: SWAMP
    icon: LILY_PAD
    priority: 13
    contents:
      GRASS_BLOCK: 4
      OAK_LOG: 3
      OAK_LEAVES: 4
    # 50% water coverage required
    watercoverage: 50
    plants:
      RED_MUSHROOM: 20:GRASS_BLOCK
      BROWN_MUSHROOM: 20:GRASS_BLOCK
      LILY_PAD: 5:WATER
    mobs:
      SLIME: 5:WATER
      PIG: 7:GRASS_BLOCK
      WITCH: 1:GRASS_BLOCK
    conversions:
      SAND: 30:DIRT:WATER
    moblimit: 3
tastybento commented 5 years ago

Using the command line to specify a biome is not supported yet. You can either let it make the biome automatically or use the GUI. I'm not sure why you saw swamp get picked automatically. I'd need to see the greenhouse, but I'll look into adding the command line option.