README.md.diff 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. 1,120c1,6
  2. < Protector Redo mod [protect]
  3. <
  4. < Protector redo for minetest is a mod that protects a players builds by placing
  5. < a block that stops other players from digging or placing blocks in that area.
  6. <
  7. < based on glomie's mod, remade by Zeg9 and rewritten by TenPlus1.
  8. <
  9. < https://forum.minetest.net/viewtopic.php?f=11&t=9376
  10. <
  11. < Change log:
  12. <
  13. < - 0.1 - Initial release
  14. < - 0.2 - Texture update
  15. < - 0.3 - Added Protection Logo to blend in with player builds
  16. < - 0.4 - Code tweak for 0.4.10+
  17. < - 0.5 - Added protector.radius variable in init.lua (default: 5)
  18. < - 0.6 - Added Protected Doors (wood and steel) and Protected Chest
  19. < - 0.7 - Protected Chests now have "To Chest" and "To Inventory" buttons to copy
  20. < contents across, also chests can be named
  21. < - 0.8 - Updated to work with Minetest 0.4.12, simplified textures
  22. < - 0.9 - Tweaked code
  23. < - 1.0 - Only owner can remove protector
  24. < - 1.1 - Set 'protector_pvp = true' in minetest.conf to disable pvp in protected
  25. < areas except your own, also setting protector_pvp_spawn higher than 0 will
  26. < disable pvp around spawn area with the radius you entered
  27. < - 1.2 - Shift and click support added with Minetest 0.4.13 to quickly copy stacks
  28. < to and from protected chest
  29. < - 1.3 - Moved protector on_place into node itself, protector zone display changed
  30. < from 10 to 5 seconds, general code tidy
  31. < - 1.4 - Changed protector recipes to give single item instead of 4, added + button
  32. < to interface, tweaked and tidied code, added admin command /delprot to remove
  33. < protectors in bulk from banned/old players
  34. < - 1.5 - Added much requested protected trapdoor
  35. < - 1.6 - Added protector_drop (true or false) and protector_hurt (hurt by this num)
  36. < variables to minetest.conf settings to stop players breaking protected
  37. < areas by dropping tools and hurting player.
  38. < - 1.7 - Included an edited version of WTFPL doors mod since protected doors didn't
  39. < work with the doors mod in the latest daily build... Now it's fine :)
  40. < added support for "protection_bypass" privelage.
  41. < - 1.8 - Added 'protector_flip' setting to stop players using lag to grief into
  42. < another players house, it flips them around to stop them digging.
  43. < - 1.9 - Renamed 'protector_pvp_spawn' setting to 'protector_spawn' which protects
  44. < an area around static spawnpoint and disables pvp if active.
  45. < (note: previous name can still be used)
  46. < - 2.0 - Added protector placement tool (thanks to Shara) so that players can easily
  47. < stand on a protector, face in a direction and it places a new one at a set
  48. < distance to cover protection radius. Added /protector_show command (thanks agaran)
  49. < Protectors and chest cannot be moved by mesecon pistons or machines.
  50. < - 2.1 - Added 'protector_night_pvp' setting so night-time becomes a free for all and
  51. < players can hurt one another even inside protected areas (not spawn protected)
  52. < - 2.2 - Updated protector tool so that player only needs to stand nearby (2 block radius)
  53. < It can also place vertically (up and down) as well. New protector recipe added.
  54. < - 2.3 - Localise many of the protector functions and tidy code.
  55. < - 2.4 - Update to newer functions, Minetest 0.4.16 needed to run now.
  56. < - 2.5 - Added HUD text to show when player is inside a protected area (updates every 5 seconds)
  57. <
  58. < Lucky Blocks: 10
  59. <
  60. <
  61. < Usage: (requires server privelage)
  62. <
  63. < list names to remove
  64. <
  65. < /protector_remove
  66. <
  67. < remove specific user names
  68. <
  69. < /protector_remove name1 name2
  70. <
  71. < remove all names from list
  72. <
  73. < /protector_remove -
  74. <
  75. < Whenever a player is near any protectors with name1 or name2 then it will be
  76. < replaced by an air block.
  77. <
  78. <
  79. < show owner name to replace
  80. <
  81. < /protector_replace
  82. <
  83. < replace owner with new name
  84. <
  85. < /protector_replace owner new_owner
  86. <
  87. < reset name list
  88. <
  89. < /protector_replace -
  90. <
  91. <
  92. < show protected areas of your nearby protectors (max of 5)
  93. < /protector_show
  94. <
  95. <
  96. < The following lines can be added to your minetest.conf file to configure specific features of the mod:
  97. <
  98. < protector_radius = 5
  99. < - Sets the area around each protection node so that other players cannot dig, place or enter through protected doors or chests.
  100. <
  101. < protector_pvp = true
  102. < - true or false this setting disabled pvp inside of protected areas for all players apart from those listed on the protector node.
  103. <
  104. < protector_night_pvp = false
  105. < - when true this setting enables pvp at night time only, even inside protected areas, requires protector_pvp to be active to work.
  106. <
  107. < protector_spawn = 10
  108. < - Sets an area 10 nodes around static spawnpoint that is protected.
  109. <
  110. < protector_hurt = 2
  111. < - When set to above 0, players digging in protected areas will be hurt by 2 health points (or whichever number it's set to)
  112. <
  113. < protector_flip = true
  114. < - When true players who dig inside a protected area will flipped around to stop them using lag to grief into someone else's build
  115. <
  116. <
  117. < Protector Tool
  118. <
  119. < 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.
  120. <
  121. < 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.
  122. ---
  123. > Protector
  124. > =====================================================================
  125. > Main: gloomie & Zeg9 & TenPlus1
  126. > Lisc: MIT
  127. > Text: MIT
  128. > Link: https://github.com/tenplus1/protector