Skip to content

A WorldEdit fix to support other mods blocks for rotating operations

License

Notifications You must be signed in to change notification settings

TheCrafter4000/WEBlocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WEBlocks

A mod for Minecraft 1.7.10

About

This mod is a fix for sk89q's WorldEdit to support blocks added by other mods. It has integrated support for CarpentersBlocks and most stair blocks. It also provides an API for other developers to make their blocks work with WorldEdit, alongside a configuration file for basic integration.

Configuration

The configuration file is located at /config/worldedit/. It maps a blocks unlocalized name to a list of states. States basically represent the metadata of a block and the direction they're facing to.

Here's a small example. dataMask is optional. It is used to repeat the states internal via the bitwise "and" operator. For example, a value of 7 means that the states will repeat after the 8th entry.

{
  "modid:unlocalizedName": [
    {
      "dataMask": 7,
      "values": [
        {
          "meta": 0,
          "direction": [1.0, -1.0, 0.0]
        },
        {
          "meta": 1,
          "direction": [-1.0, -1.0, 0.0]
        },
        {
          "meta": 2,
          "direction": [0.0, -1.0, 1.0]
        },
        {
          "meta": 3,
          "direction": [0.0, -1.0, -1.0]
        },
        {
          "meta": 4,
          "direction": [1.0, 1.0, 0.0]
        },
        {
          "meta": 5,
          "direction": [-1.0, 1.0, 0.0]
        },
        {
          "meta": 6,
          "direction": [0.0, 1.0, 1.0]
        },
        {
          "meta": 7,
          "direction": [0.0, 1.0, -1.0]
        }
      ]
    }
  ]
}

About

A WorldEdit fix to support other mods blocks for rotating operations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages