Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

OBWEReplacer

Minecraft bukkit/spigot plugin to act as a companion to WorldEdit replace command
to deal with blocks and entities that WorldEdit doesn't. For example, item frames.

For now the replacer only supports item frames and torches, as that was the "driver" for creating
this plugin. In our build server we use a lot of item frames for vehicle head lights and tail lights,
as well as traffic lights and torches for airport lights. Using the glow item frame makes these come
alive as it glows the item in the frame so at night these look fabulous! They are by far the best
for simulating different colored point lights, especially if you make the frame invisible. Converting
these by hand would have been an absolutely mammoth undertaking, but with this plugin we can swap out
thousands in one world edit selection! You can even provide the content which which to fill the
item frame and set whether the frame should be visible or invisible!

Regular item frames:

Glow item frames:

Traffic lights:

Torches to item frames:

Cool creations:

The goal will be to add more entities and blocks currently not covered by WorldEdit replace, or
where it doesn't perform the replace correctly.

Select a region with worldedit, then use the '/obrep <from> <to>[material]' command to perform the block
replacement.

Examples:
Switch between item frames keeping the existing content
/obrep item_frame glow_item_frame
/obrep glow_item_frame item_frame

Add new item to target item frame
/obrep item_frame glow_item_frame[ cyan_wool ]

Switch between any type of torch or to an item frame, preserving direction of source torch
/obrep redstone_torch glow_item_frame[red_wool]
/obrep wall_torch item_frame[yellow_concrete]

Make the frame invisible
/obrep soul_torch glow_item_frame[diamond_axe, invisible]
/obrep soul_wall_torch item_frame[ visible, diamond_axe]

Or cancel a long running replace command:
/obrep cancel

Currently there are some hardcoded limits, such as number of blocks in the selection (1,000,000)
and the number of blocks to process per server tick (1000). These will go into a config file soon.

Compiled for 1.21 and Java 21.

About

WorldEdit companion replace command to deal with blocks and entities that worldedit doesn't.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages