Kilarin wrote:how does it work against someone standing on a roof and digging down?
local pos = player:getpos()
if block.y < pos.y then
player:setpos({x=pos.x, y=pos.y+1.0, z=pos.z})
player:set_look_pitch(-player:get_look_pitch())
end
if protector.flip and player then
-- yaw + 180°
local yaw = player:get_look_yaw() + math.pi
if yaw > 2*math.pi then yaw = yaw - 2*math.pi end
player:set_look_yaw(yaw)
-- invert pitch
player:set_look_pitch(-player:get_look_pitch())
-- move player up 1 block, if block is below player
local pla_pos player:getpos()
if pos.y < pla_pos.y then
player:setpos({x=pla_pos.x, y=pla_pos.y+1.0, z=pla_pos.z})
end
end
2016-08-15 19:30:16: ERROR[Main]: ServerError: Lua: Runtime error from mod '' in callback node_on_dig(): ...T\bin\..\games\just_test_tribute\mods\protector\init.lua:255: attempt to call method 'get_look_horizontal' (a nil value)
2016-08-15 19:30:16: ERROR[Main]: stack traceback:
2016-08-15 19:30:16: ERROR[Main]: ...T\bin\..\games\just_test_tribute\mods\protector\init.lua:255: in function 'is_protected'
2016-08-15 19:30:16: ERROR[Main]: D:\JUSTTEST\bin\..\builtin\game\item.lua:448: in function <D:\JUSTTEST\bin\..\builtin\game\item.lua:439>
maikerumine wrote:Help me please. :)
- Code: Select all
...T\bin\..\games\just_test_tribute\mods\protector\init.lua:255:
attempt to call method 'get_look_horizontal' (a nil value)
TenPlus1 wrote:If area protection is set to 5 (default) then 5 blocks all around the protection node (up/down, left/right, back/forward) is protected... You can punch the protector to see the purple field of the area protected also...
TenPlus1 wrote:So long as your username either owns or is listen on the protector you should be able to punch it and display the purple boundary area... I will double check just to make sure there's no glitch.
gameid = minetest
backend = sqlite3
creative_mode = false
enable_damage = true
load_mod_3d_armor = true
load_mod_3d_armor_stand = true
load_mod_3dmushrooms = true
load_mod_adv_spawning = true
load_mod_along_shore = true
load_mod_ambience = true
load_mod_bakedclay = true
load_mod_bell = true
load_mod_biome_lib = true
load_mod_bookmarks = true
load_mod_boost_cart = true
load_mod_bridges = true
load_mod_builtin_item = true
load_mod_bushes = true
load_mod_bushes_classic = true
load_mod_castle = true
load_mod_cavestuff = true
load_mod_cblocks = true
load_mod_clams = true
load_mod_concrete = true
load_mod_cottages = true
load_mod_craftguide = true
load_mod_digilines = true
load_mod_doors = true
load_mod_droplift = true
load_mod_dropondie = true
load_mod_dryplants = true
load_mod_ethereal = true
load_mod_extranodes = true
load_mod_farming = true
load_mod_ferns = true
load_mod_flowers_plus = true
load_mod_handle_schematics = true
load_mod_hazmat_suit = true
load_mod_hbarmor = true
load_mod_hbhunger = true
load_mod_hopper = true
load_mod_hudbars = true
load_mod_junglegrass = true
load_mod_mapfix = true
load_mod_maptools = true
load_mod_mesecons = true
load_mod_mesecons_alias = true
load_mod_mesecons_blinkyplant = true
load_mod_mesecons_button = true
load_mod_mesecons_commandblock = true
load_mod_mesecons_delayer = true
load_mod_mesecons_detector = true
load_mod_mesecons_doors = true
load_mod_mesecons_extrawires = true
load_mod_mesecons_gates = true
load_mod_mesecons_hydroturbine = true
load_mod_mesecons_insulated = true
load_mod_mesecons_lamp = true
load_mod_mesecons_lightstone = true
load_mod_mesecons_luacontroller = true
load_mod_mesecons_materials = true
load_mod_mesecons_microcontroller = true
load_mod_mesecons_movestones = true
load_mod_mesecons_mvps = true
load_mod_mesecons_noteblock = true
load_mod_mesecons_pistons = true
load_mod_mesecons_powerplant = true
load_mod_mesecons_pressureplates = true
load_mod_mesecons_random = true
load_mod_mesecons_receiver = true
load_mod_mesecons_solarpanel = true
load_mod_mesecons_stickyblocks = true
load_mod_mesecons_switch = true
load_mod_mesecons_torch = true
load_mod_mesecons_walllever = true
load_mod_mesecons_wires = true
load_mod_mg_villages = true
load_mod_mobf = true
load_mod_molehills = true
load_mod_more_chests = true
load_mod_moreblocks = true
load_mod_moreores = true
load_mod_moresnow = true
load_mod_nature_classic = true
load_mod_noairblocks = true
load_mod_nssb = true
load_mod_nssm = true
load_mod_nyan_tools = true
load_mod_painting = true
load_mod_pipeworks = true
load_mod_playeranim = true
load_mod_playerplus = true
load_mod_poisonivy = true
load_mod_protector = true
load_mod_quartz = true
load_mod_random_buildings = true
load_mod_screwdriver = true
load_mod_seacobble = true
load_mod_seacoral = true
load_mod_seaglass = true
load_mod_seagravel = true
load_mod_sealamps = true
load_mod_seaplants = true
load_mod_seastone = true
load_mod_seastonebrick = true
load_mod_seawrecks = true
load_mod_sedimentology = true
load_mod_shields = true
load_mod_signs_lib = true
load_mod_spawn_command = true
load_mod_stairsshine = true
load_mod_technic = true
load_mod_technic_armor = true
load_mod_technic_chests = true
load_mod_technic_worldgen = true
load_mod_throwing = true
load_mod_torches = true
load_mod_travelnet = true
load_mod_treecapitator = true
load_mod_trunks = true
load_mod_unified_inventory = true
load_mod_unifieddyes = true
load_mod_vector_extras = true
load_mod_village_modern_houses = true
load_mod_village_sandcity = true
load_mod_vines = true
load_mod_whiteshell = true
load_mod_wieldview = true
load_mod_wine = true
load_mod_woodsoils = true
load_mod_wool = true
load_mod_wrench = true
load_mod_xdecor = true
load_mod_youngtrees = true
server_announce = false
TenPlus1 wrote:Hrm, on a newly created 0.4.14 world I placed 20 protectors at varying lengths and went back to punch them all which resulted in purple fields showing for each and every one ?!?!?! It works ok...
What version of minetest are you using ? and do you have latest Protector Redo mod: https://github.com/tenplus1/protector
CuriousNoob wrote: ... the latest daily version from the minetest-devs ppa
TenPlus1 wrote:Silly question, but... are you trying to punch the protector node while holding a protector node ? If so, that doesn't work as holding a protector node while punching will use it as a tool and show you the coords for the closest protector.
This area is owned by singleplayer.
Protection located at: (0,5,-483)
CuriousNoob wrote:I stopped at about the 44th (0, 5, -483) to report this odd phenomenon yesterday, and haven't played it today.
amadin wrote:50% texture transparent "Protection logo" node https://github.com/amadin/protector/com ... a637aa07a9 if someone needs. Download link https://github.com/amadin/protector/archive/master.zip
Users browsing this forum: Google [Bot] and 9 guests