mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-07 11:47:34 +01:00
supporting 0.4.13 shift-click to move stacks inside chest
This commit is contained in:
parent
d3625e3270
commit
ba35657b0c
15
README.md
15
README.md
@ -1,6 +1,9 @@
|
||||
Protector Redo mod [protect]
|
||||
|
||||
Protector redo mod for minetest is based on glomie's mod, remade by Zeg9 and reworked by TenPlus1.
|
||||
Protector redo for minetest is a mod that protects a players builds by placing
|
||||
a block that stops other players from digging or placing blocks in that area.
|
||||
|
||||
based on glomie's mod, remade by Zeg9 and reworked by TenPlus1.
|
||||
|
||||
https://forum.minetest.net/viewtopic.php?f=11&t=9376
|
||||
|
||||
@ -12,9 +15,13 @@ Released under WTFPL
|
||||
0.4 - Code tweak for 0.4.10+
|
||||
0.5 - Added protector.radius variable in init.lua (default: 5)
|
||||
0.6 - Added Protected Doors (wood and steel) and Protected Chest
|
||||
0.7 - Protected Chests now have "To Chest" and "To Inventory" buttons to copy contents across, also chests can be named
|
||||
0.7 - Protected Chests now have "To Chest" and "To Inventory" buttons to copy
|
||||
contents across, also chests can be named
|
||||
0.8 - Updated to work with Minetest 0.4.12, simplified textures
|
||||
0.9 - Tweaked code
|
||||
1.0 - Only owner can remove protector
|
||||
1.1 - Set protector_pvp to true in minetest.conf to disable pvp in player's own area
|
||||
also setting protector_pvp_spawn will disable pvp in spawn area up to a radius of n blocks
|
||||
1.1 - Set 'protector_pvp = true' in minetest.conf to disable pvp in protected
|
||||
areas except your own, also setting protector_pvp_spawn higher than 0 will
|
||||
disable pvp around spawn area with the radius you entered
|
||||
1.2 - Shift and click support added with Minetest 0.4.13 to quickly copy stacks
|
||||
to and from protected chest
|
2
init.lua
2
init.lua
@ -623,6 +623,8 @@ minetest.register_node("protector:chest", {
|
||||
.. "button[6,4.5;2,0.25;todn;To Inventory]"
|
||||
.. "list[current_player;main;0,5;8,1;]"
|
||||
.. "list[current_player;main;0,6.08;8,3;8]"
|
||||
.. "listring[nodemeta:" .. spos .. ";main]"
|
||||
.. "listring[current_player;main]"
|
||||
.. default.get_hotbar_bg(0,5)
|
||||
|
||||
minetest.show_formspec(
|
||||
|
Loading…
Reference in New Issue
Block a user