Greenhouses
Greenhouses
Greenhouses is an essential plugin to power-up your ASkyBlock or AcidIsland world! It enables players to build their own biome greenhouses complete with weather, friendly mob spawning, unique plant growth and even block erosion!
Greenhouses are made out of glass and must contain the blocks found in the Biome Recipe to be valid. There is a recipe GUI. Once built, the greenhouse can be used to grow plants with bonemeal, and it may spawn biome-specific mobs. If you include a hopper with water in it, snow will form inside the greenhouse when it rains. If you put bonemeal in the hopper, biome-specific plants will grow. Some blocks can also transform over time due to "erosion".
Features
- Craft your own self-contained biome greenhouse on an island (or elsewhere if you like)
- Greenhouses can grow plants that cannot normally be grown, like sunflowers
- Friendly mobs can spawn if your greenhouse is well designed - need slimes? Build a swamp greenhouse!
- Blocks change in biomes - dirt becomes sand in a desert, dirt becomes clay in a river, for example.
- Greenhouses can run in multiple worlds.
- Easy to use GUI shows greenhouse recipes (/gh)
- Admins can fully customize biomes and recipes
How to Build A Greenhouse (Simple version)
- Make glass blocks and build a rectangular set of walls with a flat roof.
- Put a hopper in the wall or roof.
- Put a door in the wall so you can get in and out.
- Type /gh and read the rules for the greenhouse you want.
- Exit the GUI and place blocks, water, lava and ice so that you make your desired biome.
- Type /gh again and click on the biome to make it.
Once made:
- Use bonemeal to grow small plants on grass immediately in the greenhouse.
- Or place bonemeal in the hopper to have the greenhouse sprinkle bonemeal automatically. Come back later to see what grows!
- Place a bucket of water (or more) in the hopper to cause snow to fall in cold biomes. Snow will fall when it rains in the world. Each snowfall empties one bucket of water.
- Friendly biome-specific mobs may spawn in your greenhouse - the usual rules apply (be more than 24 blocks away).
- Enjoy!
FAQ
- Can I use stained glass? Yes, you can. It's pretty.
- Can I fill my greenhouse full of water? Yes. That's an ocean.
- Will a squid spawn there? Maybe... okay, yes it will, if it's a big enough ocean.
- How do I place a door high up in the wall if the wall is all glass? Place it on a hopper.
- How do I place a door on a hopper? Crouch and then place it.
- Can I use metal doors? Yes.
- Can I use a trap door? Yes.
- Can I grow swamp flowers with this? Yes. Make a swamp biome and use bonemeal.
- How much bonemeal is used to grow plants? One per successful plant.
- How much water do I need to put into the hopper to make it snow? One bucket of water (just the water) is used up every time it rains. This only happens in cold biomes.
- Can I build a Nether greenhouse? Try it and see... (Actually, you may need permission)
- Can I build greenhouses in the Nether? Yes. You can colonize the nether with them.
- What kind of mobs spawn in the biomes? It's what you would expect, wolves in Cold Taiga, horses on plains, etc.
Required Plugins
- Vault for permissions - make sure you use the latest version!
Installation and Configuration
- Download and install Vault if you haven't done so already
- Download the plugin
- Place into your plugins folder
- Restart your server (or reload plugins)
- The plugin will make a folder called Greenhouses. Open that folder.
- Check config.yml and edit to be what you want, note the list of world names.
- Configure the biomes.yml if you like (advanced).
- Type /gadmin reload in the game to reload the config or restart the server.
- Done! To make your first greenhouse, build a glass box and type /gh to see the recipes.
Upgrading
Read the file release notes for changes and instructions on how to upgrade.
Player Commands
- /greenhouse or /gh can be used for short.
- /greenhouse help - lists these commands
- /greenhouse make: Tries to make a greenhouse by finding the first valid recipe
- /greenhouse remove: Removes a greenhouse that you are standing in if you are the owner
- /greenhouse list: Lists all the recipes available
- /greenhouse recipe: Displays the recipe GUI - clicking on a recipe will try to make a greenhouse
Admin Commands
- /gadmin reload : Reloads config files
- /gadmin info <player>: provides info on the player
- /gadmin info: provides info on the greenhouse you are in
Permissions
Permission to use specific biomes can be added in biomes.yml.
For example, the permission for the Nether (Hell) biome is greenhouses.biome.nether and is set here:
HELL: permission: greenhouses.biome.nether
The permission can be anything you like, e.g., a rank permission, myserver.VIP.
General permissions are:
greenhouses.player: description: Gives access to player commands default: true greenhouses.admin: description: Gives access to admin commands default: op
To Do
- Debugging
Source Code
Source code can be found here.
Stats Disclosure
This plugin utilizes a plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Visit mcstats.org if you would like to learn more about the stats collected. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
@tastybento
Thanks!
@awangatboo
Okay, thanks. I suspect I know where this is coming from. It's the workaround I added to enable mobs to not disappear when chunks were refreshed. I'll see what I can do to make it more robust.
I think there is a bug. I have seen it twice. I am using ASkyBlock and Greenhouses together. Ever so often the chunk the greenhouse is in will multiply the mobs in that chunk. In one example I had a swamp greenhouse and next to it I had 12 villagers. Something happened and I had about +100 slims and +100 villagers. Also below that greenhouse I had 8 pigs and then had +50 pigs.
The second time it happened I had about 8 horses in a greenhouse and this bug happened and the next thing you know I had so many horses that I could not hit them and the only way to kill them was with lava.
I have been using version 2.3. Not sure if it is greenhouse, ASkyBlock or Spigot but when you are looking through your code please look for something that could cause this.
Cool i will sort it out
Thanks once again :)
Molnig
@Molnig
Ah, that line is confusing/badly written - I need to change it. What that limit says is actually how many empty blocks each mob needs before it will spawn. It's meant to limit the number of mobs by defining the *area* that a mob needs to spawn, but it is not the limit of how many mobs can spawn in a greenhouse. After all, a greenhouse can be any size, so it is defined by the area. So:
If you want to have fewer mobs, *increase* the number. If you want to stop mobs spawning, set the probability to zero, or remove the mob from the biomes.yml file.
Here's the relevant part of the file with explanation:
Hi not sure if it is a bug as of yet but if i set the mob spawn limit to 0 mobs still spawn
i did it in the swamp biome and still got slime
@tastybento
wow- thanks. I apparently misunderstood the placement of the hopper :) It immediately started working- thanks!
Great job on the plugin!
@charlza
To grow plants there's two ways: manual and auto.
Manual - just sprinkle bone meal.
Auto - you have to put a hopper in the wall or ceiling and put bonemeal in it. So long as the settings in config.yml on timing are not zero, plants will grow.
For animals, you have to be away from the greenhouse or offline for them to spawn. If you are skeptical, edit the biomes.yml file to make the probabilities 100% to spawn! :-)
I hope that helps!
My my version reports that I have Spigot 1.7.9-R0.2-205 (MC 1.7.10). I know Greenhouses says 1.7.9, but I figured I would give it a shot anyway!
I can make a greenhouse- in fact, I have 6 different types. When I enter them, the biome color changes and it says I have entered and exited the greenhouse, but as far as I can tell, nothing actually grows in them. I'm sure it's some kind of compatibility issue, but I figured I would ask anyway :)
Thanks!
Nice ok i will give it a go
@Molnig
Thanks. I'll fix right away.
Edit: Fixed in V2.2 -waiting for file approval!
Hi when permission is set to -1 everyone who logs out and back in lose their green house
Molnig
Sweet i am on it right away :)
@Molnig
Good. Just pushed out a bug fix version you may want to use.
Nice work bento the boot time on the test server is very fast now
thank you very much
Molnig
@iarepande
Hi - I've totally redone the file saving system and it'll be available in V2.0 of the plugin shortly.
@iarepande
Thanks for the honest opinions. I'm actively improving this plugin and I expect what you say can be fixed. I'll send you a link to a newer version to try.
Hai, I was running this, and it works for a small server, but if you have as many people as my server has, then after while, it creates an issue where the server won't load because at startup it is too busy loading green houses, and extends startup by about 10-15 minutes. This is an issue because that turns a 1 -2 minute start up to a very long process and it's not even visible on the console because it hides the lines due to too many. Just thought you would like to know.
I suggest moving the loading green house data to a player login event instead of at start up so it will load the green house for the player only when they sign into the server or, only when someone loads the chunk of the green house in question. Most of these loading green houses are people who enter the world but have no green house. So you might also just consider only adding them to the list of they have a green house present also. However, even so eventually that number will become a huge amount.
I love this plugin, but it's not feasible when I have to load 550 + people every time we start up the server, some of which never even use the plugin.