Description
This mod adds "area containers". These are nodes which a player can enter. Inside is an area in which structures can be built. Items can pass in and out through Pipeworks tubes. The inside and outside can communicate using Mesecons or Digilines.I was inspired to make this by a mod for Minecraft I saw once a while ago which did a similar thing.
Locking:
Area containers can be locked. To do so, first craft a lock. Then punch a container with the lock (you must be either the one who built the container or one able to bypass protection.)
If a container is unowned and you can bypass protection, you can claim it by locking it.
To let other people in, first craft a blank key. Then punch your container with the key, binding the key to the container. Other people can enter the container while holding the key. The container contents themselves are not protected in any way.
You can unlock your container by punching it with your bare hand. You must remove the lock before breaking the container. All keys to the container will continue to work even if you uninstall and reinstall the lock.
Caveats:
- Due to an unfortunate technical limitation, area containers cannot be moved by pistons.
- This mod does not load the insides of containers without players in them. If you need this feature, you can use the world anchor node from Technic.
- While a container is not diggable until you empty it of nodes and objects, other mods may let you pick it up in order to move it. Doing so will probably lead to loss of the contents. (But teleporter_tool will work.)
- Only up to 65535 containers may exist at any one time.
- This mod will not work if Digilines is enabled but Mesecons is not.
Crafting
The items can be crafted in Minetest Game (and similar games) and MineClone 2. The crafting can be disabled in the settings.Minetest Game and Modpack "Zero":
Container:
Code: Select all
sSs
SMS
sSs
s = steel ingot
S = steel block
M = mese block
Code: Select all
s
ms
ss
s = steel ingot
m = mese crystal fragment
Code: Select all
sss
m
s = steel ingot
m = mese crystal fragment
Container:
Code: Select all
IdI
drd
IdI
I = iron block
d = diamond
r = redstone dust
Code: Select all
i
ri
ii
i = iron ingot
r = redstone dust
Code: Select all
iii
r
i = iron ingot
r = redstone dust
Whatever other crafting recipes are available, you can recycle a used key back into an blank key. The recipe is shapeless.
License
Code: LGPLv3+Textures/other assets: CC BY-SA 3.0 Unported
Dependencies
Mod dependencies: noneOptional mod dependencies: default, digilines, mcl_core, mcl_sounds, mesecons, mesecons_mvps, pipeworks, zr_iron, zr_mese, zr_metal
Source Code
Download: https://github.com/TurkeyMcMac/area_con ... s/main.zipGithub: https://github.com/TurkeyMcMac/area_containers