How to use WorldEdit with Modded Blocks

How to use WorldEdit with Modded Blocks

Updated on by

Originally posted on

In Minecraft with tags Forge, Tutorial, WorldEdit

452 words, 2 minutes to read

Using WorldEdit with blocks added by mods (modded blocks) on Minecraft versions before 1.13, such as 1.8.8 or 1.12.2 which are both commonly used for modpacks, can be confusing. The ID from the inventory doesn't work, and you can't use the block's name. Due to the way Forge works, the IDs that you see in the inventory are actually item IDs rather than block IDs, but there are a few different ways to set blocks from mods easily.

On modern versions of Minecraft, blocks use namespaced IDs, such as minecraft:grass_block. This system makes it much easier to use modded blocks with WorldEdit, but versions earlier than 1.13 lacked this. Therefore, it takes a little more effort to find the actual ID.

Using the Info Tool

The simplest way to get the actual ID of a block added by a mod is to use WorldEdit's info tool. To use the info tool, do the following:

  1. Place the block you want to set
  2. Hold any item in your hand (not a block)
  3. Run the /info command, turning the item in your hand into the “Info Tool”
  4. Right-click the block you want to find the ID of while holding the item
  5. The chat will have a message that has both the #id and [data] values
    • If it says #991 and [5], the block's ID is 991:5
  6. Use that ID in the WorldEdit command


Using the /info tool
Using the /info tool
Image transcript / description

Visible text

Willow Wood
Biomes O' Plenty
Axe
Info tool bound to Arrow
@(87.0, 65.0, 85.0): #991 (Unknown) [5] (0/15)
@(87.0, 65.0, 85.0): #991 (Unknown) [5] (0/15)

Description

A Minecraft first-person screenshot shows the crosshair aimed at the top face of a cut log block on bright green grass beside a blue river. A tooltip box at the top center identifies the targeted block as “Willow Wood” from the “Biomes O' Plenty” mod and indicates the tool type “Axe.” In the bottom-left chat/status area, purple and white text reports that the “Info tool” is bound to the Arrow key and prints the block’s coordinates and ID information twice. A circular minimap with a grid and compass markers sits in the top-right corner, and the hotbar is visible along the bottom with an axe held in the player’s right hand.

Using the clipboard pattern

Sometimes mod blocks have extra data that they require to work. Using the ID isn't good enough in these cases, but there are ways to use the block still.

WorldEdit accepts #clipboard in place of a block ID, allowing you to //copy something and then use that block. This feature is called the Clipboard Pattern.

While intended for setting intricate patterns or structures, this system also works to set mod blocks containing extra data.

To do this, select the block you want to use with the selection wand and run //copy. Then you can use #clipboard in place of block IDs in practically any WorldEdit command. For example, //set #clipboard.

Using the clipboard pattern
Using the clipboard pattern
Image transcript / description

Visible text

Willow Wood
Biomes O' Plenty
Axe
12:43 Daytime
The multiblock is too small. It must be at least 3x3x3 in size.
@(87.0, 64.0, 87.0): #271 (Unknown) [0] (0/15)
The multiblock is too small. It must be at least 3x3x3 in size.
@(86.0, 64.0, 87.0): #271 (Unknown) [0] (0/15)
@(86.0, 64.0, 87.0): #271 (Unknown) [0] (0/15)
The multiblock is too small. It must be at least 3x3x3 in size.
@(87.0, 64.0, 86.0): #271 (Unknown) [0] (0/15)
@(86.0, 64.0, 86.0): #271 (Unknown) [0] (0/15)
The multiblock is too small. It must be at least 3x3x3 in size.
@(87.0, 64.0, 86.0): #271 (Unknown) [0] (0/15)
Unsuccessfl:
@(87.0, 65.0, 85.0): #991 (Unknown) [5] (0/15)
@(87.0, 65.0, 85.0): #991 (Unknown) [5] (0/15)
Info tool bound to Arrow
@(87.0, 65.0, 85.0): #991 (Unknown) [5] (0/15)
@(87.0, 65.0, 85.0): #991 (Unknown) [5] (0/15)
Saved screenshot as 2020-05-09_15.32.38.png
First position set to (87.0, 65.0, 85.0) (8).
Second position set to (87.0, 65.0, 85.0) (1).
1 blocks(s) copied.
First position set to (86.0, 64.0, 87.0) (12).
Second position set to (85.0, 64.0, 86.0) (4).
Operation completed (4 blocks affected).
//set #clipboard
Emotes

Description

A Minecraft first-person screenshot shows a 2×2 square of pale, spiral-grain log blocks set into bright green grass, with a small yellow flower and tall grass nearby and a sandy shoreline and water visible at the upper left. The player’s crosshair is centered on the log pattern, and a brown-handled tool is held at the right edge of the screen. A tooltip at the top center identifies the targeted block as “Willow Wood” from “Biomes O’ Plenty,” and a circular minimap with coordinates and “12:43 Daytime” appears in the top-right corner. The lower-left chat/console overlay contains multiple system messages about a multiblock being too small, setting positions, copying blocks, and completing an operation. The hotbar spans the bottom center, and an “Emotes” button sits at the bottom right.

Using the hand pattern

Finally, most simple blocks can also be set with WorldEdit directly from the inventory. WorldEdit accepts hand in place of the block ID and interprets that as using the block ID equivalent to the currently held item. This means you can hold a block in your hand, and type //set hand to set all the blocks in the selected region to the block you’re holding. This works with practically all WorldEdit commands that accept block IDs.

Notes

Do note that if you're running a hybrid server that allows both Bukkit plugins and Forge mods, it's necessary to install both the WorldEdit mod and plugin. Hybrid servers can often cause other issues, though, and are generally not recommended.

About the Author
Maddy Miller

Hi, I'm Maddy, a Senior Software Engineer at Microsoft. I write articles and develop Minecraft mods including WorldEdit, WorldGuard, and CraftBook.

I've been in the Minecraft modding and server communities for over 15 years, and love sharing my learnings and experiences with others.

My opinions are my own and do not represent those of my employer.