3D Stuff Mod

From Wurm Unlimited
Jump to navigation Jump to search
Things... on a table.

This mod adds the ability to configure what items other items can be placed on, and allows actions like pushing and turning placed items.

⚠️ Warning: It predates the vanilla system added in WU 1.7 and isn't fully compatible with it. Installing it on a server that has items placed with the vanilla system will make them disappear.

Usage

Items can be placed either using the "Place" action, or by activating the item, clicking the surface and selecting "Put on top".

Put on top will place the item in the center of the surface and it can later be moved by pushing/pulling/rotating.

Some surfaces with irregular shape can only be used with Place action.

Security

All items you can place things on can now be planted/secured and locked.

Only the owner - the one who placed or planted the item - can attach, remove or replace locks.

If locked - only the owner and players with "may open" permission can interact with things placed on it, and place new things on.

If not locked - village and house permissions can still limit taking, moving and some other interactions on items but new items can still be placed on by anyone.

A player can always take or move around an item placed by himself, even if he doesn't have permissions anymore.

Examining, tasting and emotes are always allowed.

GM Commands

#surface add <id> [<SizeX> <SizeY> <SizeZ> <OffsetX> <OffsetY>]
adds or updates a surface item, if dimensions aren't given will be added as a place-only surface
#surface del <id>
deletes a surface item
#surface save
save changed configuration

id can be either template id number, modded id or from ItemList

Configuration

New and modded items can be added to the config either with GM commands above or by manually editing the config file

container@stoneOven=0.800000,0.800000,0.800000,0.000000,0.400000
the numbers are the same as used in surface add command
container@statueHota=manual-place-only
in this form the surface can only be used by manually placing

Modded Items

This secion contains examples on how to add items from other mods to work as surfaces.

container@bdew.planters.metal.bush=manual-place-only
container@bdew.planters.slate.tree=manual-place-only
container@bdew.planters.sandstone.tree=manual-place-only
container@bdew.planters.brick.tree=manual-place-only
container@bdew.planters.clay.tree=manual-place-only
container@bdew.planters.marble.tree=manual-place-only
container@bdew.planters.pottery.tree=manual-place-only
container@bdew.planters.wood.bush=manual-place-only
container@bdew.planters.stone.tree=manual-place-only
container@bdew.planters.wood.tree=manual-place-only
container@bdew.planters.stone.magic=manual-place-only
container@bdew.planters.wood.magic=manual-place-only
container@bdew.planters.stone=manual-place-only
container@bdew.planters.wood=manual-place-only
container@bdew.planters.stump=manual-place-only

Links

Download and source code: https://github.com/bdew-wurm/threedee/releases

Forum thread: https://forum.wurm-unlimited.net/viewtopic.php?f=37&t=97

Old forum thread on WO forums: https://forum.wurmonline.com/index.php?/topic/153714-beta-3d-stuff-aka-putting-stuff-on-tables/

Licence

This mod is open source and licensed under the LGPLv3.