-
Notifications
You must be signed in to change notification settings - Fork 161
s2b by MassiveCraft
Rutger Kok edited this page May 16, 2014
·
6 revisions
This page is about the Ruby script s2b to convert multiple Schematic files at once to BO2s. The BBOB application can also convert Schematic files one by one.
You build your custom object ingame, select it and export it as a Schematic with WorldEdit or MCEdit.
- Install Ruby.
- Download for Windows. Make sure that "Add Ruby executables to your PATH" is selected.
- Other OSes
- Make a new directory. In that directory, make a new file called s2b.rb. Paste everything from this page in that file. (Note: you may need to replace line 13
require "nbtfile"
, withrequire "/Library/Ruby/Gems/1.8/gems/nbtfile-0.2.0/lib/nbtfile.rb"
if you get an error when you try to run the file). - Open the command prompt. For Windows, shift-rightclick on an empty space in that directory and select Open Command Prompt.
- Type
gem install nbtfile
and press enter. Installed! (If you do not have permission, use the sudo command:sudo gem install nbtfile
).
You can run the s2b.rb file by typing (still in the command prompt) ruby s2b.rb and hitting enter. The first time, it will create the folders in and out. Place all schematics in the in folder and run the file again.
If you are on Windows and checked "Associate .rb and .rbw files with this Ruby installation" during the installation you can also double-click the s2b.rb file, but you won't see the output. You can also create a start.bat like this:
@echo off
ruby s2b.rb
pause
This script has some special behaviours:
- Air blocks are not exported - in general you want the bo2 to be transparent. Use the BBOB application to add in air blocks afterwards.
- Magenta wool is not exported - use magenta wool for cuboid min and max points. Since these will be in the WorldEdit selection it is handy if they are not exported.
- Dark blue wool is not exported - we use this to stop vines from growing too long.
- If the name of the .schematic file ends with R5 (as in Root-depth 5) a z-offset of 5 will be used. The number can of course be any number and is not limited to 5.