protector/README.md

144 lines
6.5 KiB
Markdown
Raw Permalink Normal View History

Protector Redo mod [protect]
2014-11-09 20:43:01 +01:00
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.
2016-11-02 17:54:19 +01:00
based on glomie's mod, remade by Zeg9 and rewritten by TenPlus1.
2014-11-09 20:43:01 +01:00
2015-01-05 19:53:00 +01:00
https://forum.minetest.net/viewtopic.php?f=11&t=9376
2016-08-19 20:24:54 +02:00
Change log:
2017-09-03 12:02:58 +02:00
- 0.1 - Initial release
- 0.2 - Texture update
- 0.3 - Added Protection Logo to blend in with player builds
- 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
2017-09-03 12:02:58 +02:00
- 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 = 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
2017-09-03 12:02:58 +02:00
- 1.2 - Shift and click support added with Minetest 0.4.13 to quickly copy stacks
to and from protected chest
2017-09-03 12:02:58 +02:00
- 1.3 - Moved protector on_place into node itself, protector zone display changed
from 10 to 5 seconds, general code tidy
2017-09-03 12:02:58 +02:00
- 1.4 - Changed protector recipes to give single item instead of 4, added + button
to interface, tweaked and tidied code, added admin command /delprot to remove
2015-11-13 13:16:27 +01:00
protectors in bulk from banned/old players
2017-09-03 12:02:58 +02:00
- 1.5 - Added much requested protected trapdoor
- 1.6 - Added protector_drop (true or false) and protector_hurt (hurt by this num)
variables to minetest.conf settings to stop players breaking protected
areas by dropping tools and hurting player.
2017-09-03 12:02:58 +02:00
- 1.7 - Included an edited version of WTFPL doors mod since protected doors didn't
work with the doors mod in the latest daily build... Now it's fine :)
added support for "protection_bypass" privelage.
2017-09-03 12:02:58 +02:00
- 1.8 - Added 'protector_flip' setting to stop players using lag to grief into
another players house, it flips them around to stop them digging.
2017-09-03 12:02:58 +02:00
- 1.9 - Renamed 'protector_pvp_spawn' setting to 'protector_spawn' which protects
2016-11-02 19:23:12 +01:00
an area around static spawnpoint and disables pvp if active.
(note: previous name can still be used)
2017-09-03 12:02:58 +02:00
- 2.0 - Added protector placement tool (thanks to Shara) so that players can easily
stand on a protector, face in a direction and it places a new one at a set
distance to cover protection radius. Added /protector_show command (thanks agaran)
2017-02-01 15:30:15 +01:00
Protectors and chest cannot be moved by mesecon pistons or machines.
2017-09-03 12:02:58 +02:00
- 2.1 - Added 'protector_night_pvp' setting so night-time becomes a free for all and
2017-06-06 11:26:54 +02:00
players can hurt one another even inside protected areas (not spawn protected)
2017-09-03 12:02:58 +02:00
- 2.2 - Updated protector tool so that player only needs to stand nearby (2 block radius)
It can also place vertically (up and down) as well. New protector recipe added.
2017-09-03 12:02:58 +02:00
- 2.3 - Localise many of the protector functions and tidy code.
2017-10-09 14:58:19 +02:00
- 2.4 - Update to newer functions, Minetest 0.4.16 needed to run now.
2017-11-11 13:50:50 +01:00
- 2.5 - Added HUD text to show when player is inside a protected area (updates every 5 seconds)
2018-07-12 18:03:32 +02:00
- 2.6 - Add protection against CSM tampering, updated Intllib support (thanks codexp), tweaked block textures
2018-10-24 14:59:56 +02:00
- 2.7 - Remove protection field entity when protector has been dug
- 2.8 - Added 'protector_show_interval' setting to minetest.conf [default is 5], make protection field glow in dark.
2020-02-28 17:13:17 +01:00
- 2.9 - Added MineClone2 recipes for protection block but no official support as yet
- 3.0 - Added PlayerFactions support, 'protector_hud_interval' setting and listing in advanced settings for mod values.
2020-06-12 22:11:54 +02:00
- 3.1 - Ability to hide protection blocks using /protector_hide and /protector_show , italian local added (thanks Hamlet)
- 3.2 - Defaults to Minetest translation if found, otherwise intllib fallback if loaded, locale files updated for both. Added 'protector_msg' setting for player text.
- 3.3 - Added support for playerfactions new api (thanks louisroyer), added limiter to protection radius of 22.
- 3.4 - Player flip and hurt functions moved to minetest.register_protection_violation function (thanks hlqkj), added 'protector_crafts' setting, changed wood doors n chests to immediate_dig for mineclone2 fix.
2015-11-13 13:16:27 +01:00
2017-07-03 14:45:43 +02:00
Lucky Blocks: 10
2016-11-12 11:53:33 +01:00
2015-11-13 13:16:27 +01:00
Usage: (requires server privelage)
list names to remove
/protector_remove
2015-11-13 13:16:27 +01:00
remove specific user names
/protector_remove name1 name2
2015-11-13 13:16:27 +01:00
remove all names from list
/protector_remove -
2015-11-13 13:16:27 +01:00
Whenever a player is near any protectors with name1 or name2 then it will be
replaced by an air block.
show owner name to replace
/protector_replace
replace owner with new name
/protector_replace owner new_owner
reset name list
/protector_replace -
show protected areas of your nearby protectors (max of 5)
/protector_show_area
A players own protection blocks can be hidden and shown using the following:
/protector_hide
/protector_show
The following lines can be added to your minetest.conf file to configure specific features of the mod:
protector_radius = 5
- Sets the area around each protection node so that other players cannot dig, place or enter through protected doors or chests.
protector_pvp = true
- true or false this setting disabled pvp inside of protected areas for all players apart from those listed on the protector node.
2017-06-06 11:26:54 +02:00
protector_night_pvp = false
- when true this setting enables pvp at night time only, even inside protected areas, requires protector_pvp to be active to work.
2016-11-02 17:54:19 +01:00
protector_spawn = 10
- Sets an area 10 nodes around static spawnpoint that is protected.
protector_hurt = 2
- When set to above 0, players digging in protected areas will be hurt by 2 health points (or whichever number it's set to)
protector_flip = true
- When true players who dig inside a protected area will flipped around to stop them using lag to grief into someone else's build
protector_show_interval
- Number of seconds the protection field is visible, defaults to 5 seconds.
protector_recipe = true
- When true allows players to craft protection blocks
protector_msg = true
- When true shows protection messages in players chat when trying to interact in someone else's area
Protector Tool
2017-09-03 12:02:58 +02:00
Can be crafted with a protector surrounded by steel ingots and is used to place new protectors at a set distance of protector.radius in all directions including up and down simply by looking in a direction.
2017-09-03 12:02:58 +02:00
Use by standing near an existing protector, looking in a direction and using as a tool, hold sneak/shift to place new protector containing member list from inside nearest one.