Update invisible & privilegeareas mods...
https://github.com/AiTechEye/invisible/tree/a2a6504 https://github.com/minetest-mods/privilegeareas/tree/15eae20master
parent
1602cc65d3
commit
fdbd4d4a70
13
README.md
13
README.md
|
@ -11,13 +11,13 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
***"UPDATES" Denotes updates available***
|
||||
|
||||
* admin/
|
||||
* [cleaner][] ([CC0][lic.cc0]) -- version [0.4 (68222b1 Git)][ver.cleaner] *2017-08-30*
|
||||
* [invisible][] ([LGPL][lic.lgpl2.1] / [CC BY-SA][lic.ccbysa3.0])
|
||||
* [override][] ([MIT][lic.override]) -- version [0.2 (e6dda7a Git)][ver.override] *2017-08-30*
|
||||
* [privilegeareas][] ([WTFPL][lic.privilegeareas] / [CC0][lic.cc0]) -- version: [18a803c Git][ver.privilegeareas] *2017-12-04*
|
||||
* [cleaner][] ([CC0][lic.cc0]) -- version: [0.4 (68222b1 Git)][ver.cleaner] *2017-08-30*
|
||||
* [invisible][] ([LGPL][lic.lgpl2.1] / [CC BY-SA][lic.ccbysa4.0]) -- version: [4 (a2a6504 Git)][ver.invisible]
|
||||
* [override][] ([MIT][lic.override]) -- version: [0.2 (e6dda7a Git)][ver.override] *2017-08-30*
|
||||
* [privilegeareas][] ([WTFPL][lic.privilegeareas] / [CC0][lic.cc0]) -- version: [15eae20 Git][ver.privilegeareas] *2018-11-16*
|
||||
* [privs][] ([CC0][lic.cc0])
|
||||
* [spectator_mode][] ([WTFPL][lic.spectator_mode]) -- version: [7d68bec Git][ver.spectator_mode] *2017-03-30*
|
||||
* [whitelist][] ([CC0][lic.cc0]) -- version [0.1 (b813b19 Git)][ver.whitelist] *2017-08-18*
|
||||
* [whitelist][] ([CC0][lic.cc0]) -- version: [0.1 (b813b19 Git)][ver.whitelist] *2017-08-18*
|
||||
* [awards][] ([MIT][lic.awards]) -- version: [3.4.0][ver.awards] *2021-01-10*
|
||||
* [antum][] ([MIT][lic.antum]) -- version: [69b39a4 Git][ver.antum] *2017-08-30*
|
||||
* buildings/
|
||||
|
@ -434,6 +434,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
[ver.ilights]: https://gitlab.com/VanessaE/ilights/tags/2021-02-25-01
|
||||
[ver.intllib]: https://github.com/minetest-mods/intllib/releases/tag/20180811
|
||||
[ver.invisibility]: https://notabug.org/TenPlus1/invisibility/src/e3f04a25c22fa6f9ac044de0bf2f5978c0a95cdf
|
||||
[ver.invisible]: https://github.com/AiTechEye/invisible/tree/a2a6504
|
||||
[ver.jukebox]: https://github.com/minetest-mods/jukebox/tree/d1cd9e1
|
||||
[ver.mesecons]: https://github.com/minetest-mods/mesecons/tree/v1.2
|
||||
[ver.minetest_game]: https://github.com/minetest/minetest_game/tree/5.4.1
|
||||
|
@ -459,7 +460,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
[ver.override]: https://github.com/AntumMT/mod-override/tree/e6dda7a
|
||||
[ver.painting]: https://github.com/minetest-mods/painting/tree/8961849
|
||||
[ver.pipeworks]: https://gitlab.com/VanessaE/pipeworks/-/tags/2021-02-19
|
||||
[ver.privilegeareas]: https://github.com/minetest-mods/privilegeareas/tree/18a803c
|
||||
[ver.privilegeareas]: https://github.com/minetest-mods/privilegeareas/tree/15eae20
|
||||
[ver.pvp_areas]: https://github.com/everamzah/pvp_areas/tree/0188945
|
||||
[ver.quartz]: https://github.com/minetest-mods/quartz/tree/1c5dca2
|
||||
[ver.rainbow_ore]: https://github.com/FsxShader2012/rainbow_ore/tree/6e77693
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
Licenses: code LGPL 2.1 media CC BY-SA 3.0
|
||||
Name: Invisible
|
||||
Created by: UjEdwin
|
||||
Date: 2016-04-09
|
||||
Version: 2
|
||||
|
||||
Hides players nametag when they are sneaking, or invisible if you have the invisible privilege.
|
||||
|
||||
Give yourself the invisible stick, to toggle your invisible on/off
|
||||
|
||||
/giveme i
|
||||
Licenses: code: LGPL-2.1, media: CC BY-SA-4.0
|
||||
|
||||
Version: 4
|
||||
|
||||
Hides players nametag when they are sneaking, or invisible if you have the invisible privilege.
|
||||
|
||||
Give yourself the invisible stick, to toggle your invisible on/off
|
||||
|
||||
/giveme i
|
|
@ -1 +0,0 @@
|
|||
3d_armor
|
|
@ -1,26 +1,25 @@
|
|||
-- Code by UjEdwin
|
||||
minetest.register_alias("i", "invisible:tool")
|
||||
|
||||
invisible={time=0,armor=minetest.get_modpath("3d_armor")}
|
||||
invisible = { time = 0, armor = minetest.get_modpath("3d_armor")}
|
||||
minetest.register_privilege("invisible", {
|
||||
description = "Be invisible",
|
||||
give_to_singleplayer= false,
|
||||
description = "Allows the player to become invisible.",
|
||||
give_to_singleplayer = false,
|
||||
})
|
||||
|
||||
invisible.toogle=function(user,sneak)
|
||||
invisible.toggle=function(user,sneak)
|
||||
local name=user:get_player_name()
|
||||
if minetest.check_player_privs(user:get_player_name(), {invisible=true}) then
|
||||
if not invisible[name] then
|
||||
user:set_nametag_attributes({color = {a = 0, r = 255, g = 255, b = 255}})
|
||||
invisible[name]={}
|
||||
invisible[name].tool=sneak
|
||||
invisible[name].collisionbox=user:get_properties().collisionbox
|
||||
invisible[name].visual_size=user:get_properties().visual_size
|
||||
invisible[name].textures=user:get_properties().textures
|
||||
user:set_properties({
|
||||
visual = "mesh",
|
||||
textures={"invisible_skin.png"},
|
||||
visual_size = {x=0, y=0},
|
||||
collisionbox = {0,0,0, 0,0,0},
|
||||
pointable=false,
|
||||
})
|
||||
minetest.chat_send_player(name, "invisible on")
|
||||
else
|
||||
|
@ -29,7 +28,7 @@ invisible.toogle=function(user,sneak)
|
|||
visual = "mesh",
|
||||
textures=invisible[name].textures,
|
||||
visual_size = invisible[name].visual_size,
|
||||
collisionbox=invisible[name].collisionbox
|
||||
pointable=true,
|
||||
})
|
||||
invisible[name]=nil
|
||||
|
||||
|
@ -38,7 +37,6 @@ invisible.toogle=function(user,sneak)
|
|||
armor:update_inventory(user)
|
||||
end
|
||||
|
||||
|
||||
minetest.chat_send_player(name, "invisible off")
|
||||
end
|
||||
else
|
||||
|
@ -53,13 +51,13 @@ invisible.toogle=function(user,sneak)
|
|||
end
|
||||
end
|
||||
|
||||
minetest.register_tool("invisible:wand", {
|
||||
description = "Invisibility Wand",
|
||||
inventory_image = "wand.png",
|
||||
minetest.register_tool("invisible:tool", {
|
||||
description = "invisible",
|
||||
inventory_image = "default_stick.png",
|
||||
groups = {not_in_creative_inventory=1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if minetest.check_player_privs(user:get_player_name(), {invisible=true}) then
|
||||
invisible.toogle(user,true)
|
||||
invisible.toggle(user,true)
|
||||
else
|
||||
itemstack:replace(nil)
|
||||
end
|
||||
|
@ -75,7 +73,7 @@ minetest.register_globalstep(function(dtime)
|
|||
local name=player:get_player_name()
|
||||
local sneak=player:get_player_control().sneak
|
||||
if (sneak and not invisible[name]) or (sneak==false and invisible[name] and not invisible[name].tool) then
|
||||
invisible.toogle(player)
|
||||
invisible.toggle(player)
|
||||
end
|
||||
end
|
||||
end)
|
|
@ -0,0 +1,3 @@
|
|||
name=invisible
|
||||
description=Hide nametag while sneaking, or invisible with the invisible privilege
|
||||
optional_depends=3d_armor
|
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
Before Width: | Height: | Size: 206 B |
|
@ -108,7 +108,7 @@ privilegeareas = {
|
|||
print("[PrivilegeAreas] "..name.." has lost the following privs:")
|
||||
end
|
||||
|
||||
privs[privilegeareas.areas[i].actions.on_enter.take[a]]=false;
|
||||
privs[privilegeareas.areas[i].actions.on_enter.take[a]]=nil;
|
||||
minetest.chat_send_player(name, "-- "..privilegeareas.areas[i].actions.on_enter.take[a])
|
||||
print("[PrivilegeAreas] -- "..privilegeareas.areas[i].actions.on_enter.take[a])
|
||||
end
|
||||
|
@ -161,7 +161,7 @@ privilegeareas = {
|
|||
print("[PrivilegeAreas] "..name.." has lost the following privs:")
|
||||
end
|
||||
|
||||
privs[privilegeareas.areas[i].actions.on_leave.take[a]]=false;
|
||||
privs[privilegeareas.areas[i].actions.on_leave.take[a]]=nil;
|
||||
minetest.chat_send_player(name, "-- "..privilegeareas.areas[i].actions.on_leave.take[a])
|
||||
print("[PrivilegeAreas] -- "..privilegeareas.areas[i].actions.on_leave.take[a])
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue