Giter Site home page Giter Site logo

minebench / plotgenerator Goto Github PK

View Code? Open in Web Editor NEW
4.0 6.0 1.0 86 KB

Generate a world by repeating a schematic. Ideal for plots!

Home Page: https://www.spigotmc.org/resources/plotgenerator.33386/

License: GNU General Public License v3.0

Java 100.00%
java minecraft bukkit spigot plugin bukkit-plugin multiverse plot region worldguard

plotgenerator's Introduction

PlotGenerator

This Bukkit plugin provides a custom world generator which you can use with plugins like Multiverse to generate a world by repeating a MCEdit schematic. This can be really useful if you want to generate a plot world which this plugin is intended to do in the first place.

It has the ability to automatically protect created plots with WorldGuard and you can automatically set the BUYABLE and PRICE flag either to use with your own region economy plugin or to buy it with the inbuild /buyplot command (needs Vault). The teleport flag is also set to the south border of the region as an added feature, allowing you to teleport to it with the /rg tp <id> command!

There are two ways to setup the generator: Via the generator id (-g PlotGenerator:testschematic,regionId=plot_%number% in MultiVerse) or a config setting for the world and using just -g PlotGenerator as the world's generator.

Setup via Generator ID

You can define all settings of the generator directly via the id string of the generator. This will override any settings made for that world in your config!

To create the same worlds as displayed below in the config section you would use the following commands (in Multiverse):

/mv create test NORMAL -g PlotGenerator:testschematic,overlap=1,centerX=100,centerZ=0,regionId=%world%_plot_%number%,regionInset=5,regionMinY=40,regionMaxY=100,regionPrice=50

/mv create mb_plotworld NORMAL -g PlotGenerator:config=test,schem=plot (You need to have the test section of the config defined, it wont use the generator of the test world!)

As you can see you just use PlotGenerator:schematicname without any special variable handling if you only want to repeat a schematic.

Setup via Config

Define a section for your world in your config and then just set the PlotGeneratoras the world's generator. (E.g. with /mv create plot NORMAL -g PlotGenerator in MultiVerse) Entries here do not overwrite the world's generator settings set via the ID.

worlds:
  test: # config for world test
    schematic: testschematic # The name of the schematic
    overlap: 1 # How much it should overlap (e.g. if you want odd roads)
    center: # Where to start the schematics if you want to align it to some existin structures
      x: 100
      z: 0 # Can be ommited, defaults to zero
    region: # WorldGuard region creation settings
      id: %world%_plot_%number% # The id of the newly created region. %world% gets replaced with the world's name, %number% with the number of that region
      inset: 5 # How far away from the schematics border the region should start, use 0 to protect the whole schematic
      min-y: 40 # The lower end of the region
      max-y: 100 # The upper end of the region
      price: 50 # Sets the buyable and the price flag
  mb_plotworld:
    config: test # Use the settings of world test
    schematic: plot # but use the schematic plot
    

Commands

Command Permission Explanation
/plotgenerator plotgenerator.command Main plugin command, alias: /plotgen
/plotgenerator reload plotgenerator.command.reload Reloads the config You may need to unload the world or restart your server for the changes to take effect!
/plotgenerator buy [<id>] plotgenerator.command.buy Short: /buyplot [<regionid>]. Purchase the region that you are standing in (needs Vault). If you have the permission plotgenerator.command.buy.byregionid you can specify a region id.

Downloads

Dev builds can be found on the Minebench jenkins server.

plotgenerator's People

Contributors

phoenix616 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

harvelsx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.