Importing Schematics

Discussion in 'Plugin Development' started by MCGods, Oct 29, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    MCGods

    I would like to make a RPG plugin. For what I have in mind is: make it so players can buy a house on a plot of land. Most houses will have extensions (rooms). Which will be obtained by further money by right-clicking a sign. This sign would have something like [House]//Kitchen//$50000
    I would use an interact method for this. Checking the first line .... Then I want the plugin to obtain a (random) schematic from a folder called Kitchen inside of my plugin's folder. I then want to 'paste' this building into the world. Replacing the sign.

    I would like to make it non worledit dependable.
     
  2. Offline

    The Fancy Whale

    Wrong forum... You want plugin requests
     
  3. Offline

    Stealth2800

    The Fancy Whale
    Incorrect, "I would like to make a RPG plugin. "

    Anyways, using WorldEdit would be the easiest option here. Is there a reason you don't want to use it?
     
  4. Offline

    The Fancy Whale

    stealth2800
    I know that MCGods wants to make the plugin. But MCGods does not appear to have any clue how to make this type of plugin.
     
  5. Offline

    Stealth2800

    The Fancy Whale
    If I had to guess, I'd say he's wondering how to import schematics. Since he hasn't explicitly stated that he needs help making this plugin, I assume he only needs help with what the topic of the post says: "importing schematics".
     
  6. Offline

    bobacadodl

    You'll need to look into how schematics files are formatted. Write a class that will read it and convert into an array of blocks I guess?

    EDIT: Apparently schematics also contain entities :O In that case, you should probably create a separate schematic class with all of the required data
    http://minecraft.gamepedia.com/Schematic_file_format
     
  7. Offline

    MCGods

    Sorry, its unclear, but I can make plugins. Just this time, I want to make a different type of plugin which includes importing blocks (schematics). I have looked on many forums and sites. Each said different things, so I guessed the most up-to-date and 'proper' way to do it, someone here would know.

    I don't like to make a mod/plugin dependable on something, for couple of reasons. Some being, I have to check more things to make sure it will be stable with the next update. Updates will usually take longer, as I don't have the full control over the plugin (some methods might change slightly-for big plugin like WE, it could take some time to update every change). Some servers might strongly be against some plugins. If there is no other way, I would use it as a final resource.
    From what I've read in places, some did suggest using an array with blocks, but it would put big long strain on the server, as it only does it block-by-block, with larger building it would take few seconds...

    Since a schematic file is just nbt with blocks in the right place. I thought that it could be 'pasted' as it is the same format, the world is.
     
Thread Status:
Not open for further replies.

Share This Page