space represents the space option for JSON.stringify(). Returns string representation off the schematic. Return a buffer encoding this schematic Schematic.toJSON(space?) If version is not set, the loader try to autodetect the version from the file. Return a Schematic instance, read from the buffer. Paste the schematic in world (prismarine-world) at the at (vec3) location. Make a schematic instance from world (prismarine-world) between start and end (vec3), offset will be the offset of the schematic, version must match world's version. If block is not given or nullish setBlock removes the block at pos. Set a block at pos to a block of Block instance (see prismarine-block). In <1.11, there is no block state, just the block in the commands In 1.11+, there are block states as metadata as a number in the commands In 1.13+, there are block states as an array in the commands the offset is a vec3 instance that is applied by. Returns an array of commands to run to make the schematic in a vanilla server. It can be pc (default) or pe to account for a different command style between Java and Pocket Edition. Schematic.makeWithCommands(offset, platform = 'pc') the callback is called with args (block, pos). Returns an array of the results from calling the callback on every block in the schematic. Schematic.forEach(cb)Ĭalls the callback on every block in the schematic. Return the end coordinate of this schematic. Return the start coordinate of this schematic. blocks: indices in the palette for each blocks in y, z, x order.palette : list of stateIds for the palette of this schematic.version : the mc version of this schematic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |