Add files via upload

master
AiTechEye 2018-08-13 18:31:49 +02:00 committed by GitHub
parent 925f2245e7
commit b745655305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 78 additions and 78 deletions

View File

@ -171,9 +171,9 @@ vexcazer_copy.copying=function(to_do,pos,input,stack_count,nodes2place,stack_cou
local c=((stack_count*stack_count)*stack_count)-nodes
minetest.chat_send_player(input.user_name,"<vexcazer> " .. c.. " nodes successfully placed")
if c<500 then
minetest.sound_play("vexcazer_massiveplace", {pos = input.user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massiveplace", {pos = input.user:get_pos(), gain = 1.0, max_hear_distance = 10,})
else
minetest.sound_play("vexcazer_massive3dplace", {pos = input.user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massive3dplace", {pos = input.user:get_pos(), gain = 1.0, max_hear_distance = 10,})
end
return true
end
@ -181,9 +181,9 @@ vexcazer_copy.copying=function(to_do,pos,input,stack_count,nodes2place,stack_cou
local c=((stack_count*stack_count)*stack_count)-nodes
minetest.chat_send_player(input.user_name,"<vexcazer> " .. c.. " nodes successfully saved in the tool")
if c<500 then
minetest.sound_play("vexcazer_massivedig", {pos = input.user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massivedig", {pos = input.user:get_pos(), gain = 1.0, max_hear_distance = 10,})
else
minetest.sound_play("vexcazer_massive3ddig", {pos = input.user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massive3ddig", {pos = input.user:get_pos(), gain = 1.0, max_hear_distance = 10,})
end
return info
end
@ -243,7 +243,7 @@ vexcazer_copy.copy=function(itemstack, user, pointed_thing,input)
if input.on_place then
info=vexcazer_copy.copying(1,pos,input,stack_count,nodes2place,stack_count2)
if not info then
minetest.sound_play("vexcazer_error", {pos = input.user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = input.user:get_pos(), gain = 1.0, max_hear_distance = 10,})
return
end
local info2=""
@ -269,7 +269,7 @@ vexcazer_copy.copy=function(itemstack, user, pointed_thing,input)
num=num+1
end
if not vexcazer_copy.copying(2,pos,input,stack_count,info) then
minetest.sound_play("vexcazer_error", {pos = input.user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = input.user:get_pos(), gain = 1.0, max_hear_distance = 10,})
return false
end
vexcazer_copy.copying(3,pos,input,stack_count,info)
@ -292,4 +292,4 @@ vexcazer.registry_mode({
vexcazer_copy.copy(itemstack, user, pointed_thing,input)
end
end,
})
})

View File

@ -28,7 +28,7 @@ minetest.register_node("vexcazer_flashlight:flht", {
sunlight_propagates = true,
groups = {not_in_creative_inventory=1},
on_construct=function(pos)
minetest.env:get_node_timer(pos):start(1.5)
minetest.get_node_timer(pos):start(1.5)
end,
on_timer = function (pos, elapsed)
minetest.set_node(pos, {name="air"})
@ -58,7 +58,7 @@ minetest.register_node("vexcazer_flashlight:flhtw", {
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,not_in_creative_inventory=1},
on_construct=function(pos)
minetest.env:get_node_timer(pos):start(1.5)
minetest.get_node_timer(pos):start(1.5)
end,
on_timer = function (pos, elapsed)
minetest.set_node(pos, {name="air"})
@ -71,7 +71,7 @@ minetest.register_globalstep(function(dtime)
vexcazer_flashlight.timer=0
for i,ob in pairs(vexcazer_flashlight.users) do
local name=ob.player:get_inventory():get_stack("main", ob.slot):get_name()
local pos=ob.player:getpos()
local pos=ob.player:get_pos()
pos.y=pos.y+1.5
local n=minetest.get_node(pos).name
local light=minetest.get_node_light(pos)
@ -90,4 +90,4 @@ minetest.register_globalstep(function(dtime)
end
end
end
end)
end)

View File

@ -1,6 +1,6 @@
local vex_gravity=function(itemstack, user, pointed_thing,input)
local ob={}
local pos=user:getpos()
local pos=user:get_pos()
if user:get_attach() then return itemstack end
if pointed_thing.type=="object" then
@ -22,14 +22,14 @@ local vex_gravity=function(itemstack, user, pointed_thing,input)
minetest.sound_play("vexcazer_mode", {pos=pos,max_hear_distance = 5, gain = 1})
target:set_detach()
if target:get_luaentity() then
target:setvelocity({x=0, y=-2, z=0})
target:setacceleration({x=0, y=-8, z=0})
target:set_velocity({x=0, y=-2, z=0})
target:set_acceleration({x=0, y=-8, z=0})
end
return itemstack
elseif target:get_luaentity() and target:get_luaentity().block
and ob:get_luaentity().user:get_player_name()==player_name then
local pos=ob:getpos()
local pos=ob:get_pos()
if minetest.registered_nodes[minetest.get_node(pos).name].walkable==false
and minetest.is_protected(pos,player_name)==false then
if minetest.registered_nodes[target:get_luaentity().drop] then
@ -46,8 +46,8 @@ local vex_gravity=function(itemstack, user, pointed_thing,input)
end
if ob:get_luaentity().target:get_luaentity() and ob:get_luaentity().target:get_luaentity().itemstring then
ob:get_luaentity().target:setvelocity({x=0, y=-2, z=0})
ob:get_luaentity().target:setacceleration({x=0, y=-8, z=0})
ob:get_luaentity().target:set_velocity({x=0, y=-2, z=0})
ob:get_luaentity().target:set_acceleration({x=0, y=-8, z=0})
minetest.sound_play("vexcazer_mode", {pos=pos,max_hear_distance = 5, gain = 1})
end
return itemstack
@ -56,7 +56,7 @@ local vex_gravity=function(itemstack, user, pointed_thing,input)
if (not ob:get_attach()) and not (ob:get_luaentity() and ob:get_luaentity().ggunpower) then
if ob:is_player() and minetest.check_player_privs(input.user_name, {vexcazer=true})==false then
minetest.sound_play("vexcazer_error", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
minetest.chat_send_player(input.user_name, "<vexcazer> You is unallowed to hold players")
return false
end
@ -64,7 +64,7 @@ local vex_gravity=function(itemstack, user, pointed_thing,input)
vexcazer_gravity_power.item=user:get_wielded_item():get_name():split(":")[2]
vexcazer_gravity_power.user=user
vexcazer_gravity_power.target=ob
local m=minetest.env:add_entity(ob:getpos(), "vexcazer_gravity:power")
local m=minetest.add_entity(ob:get_pos(), "vexcazer_gravity:power")
ob:set_attach(m, "", {x=0,y=0,z=0}, {x=0,y=0,z=0})
if user:get_player_control().RMB then m:right_click(user)
@ -136,9 +136,9 @@ on_rightclick=function(self, clicker)
if self.target:get_luaentity() and self.target:get_luaentity().itemstring then
self.target:get_luaentity().age=vexcazer_gravity_item_time
end
local pos=self.object:getpos()
local pos=self.object:get_pos()
self.time=10
self.object:setvelocity({x=dir.x*45, y=dir.y*45, z=dir.z*45})
self.object:set_velocity({x=dir.x*45, y=dir.y*45, z=dir.z*45})
self.throw=1
self.time=0
if self.item~="gun3" then
@ -155,8 +155,8 @@ on_step= function(self, dtime)
if self.throw==0 then
if self.user:get_wielded_item():get_name():find(self.item,8)==nil then
self.target:set_detach()
self.target:setvelocity({x=0, y=-2, z=0})
self.target:setacceleration({x=0, y=-8, z=0})
self.target:set_velocity({x=0, y=-2, z=0})
self.target:set_acceleration({x=0, y=-8, z=0})
end
if self.target==nil or (not self.target:get_attach()) then
self.object:set_hp(0)
@ -164,7 +164,7 @@ on_step= function(self, dtime)
if self.sound then minetest.sound_stop(self.sound) end
end
local d=4
local pos = self.user:getpos()
local pos = self.user:get_pos()
if pos==nil then return self end
if self.user:get_hp()<1 then self.target:set_detach() end
@ -182,31 +182,31 @@ on_step= function(self, dtime)
end
if minetest.registered_nodes[minetest.get_node(npos).name].walkable then
self.object:setvelocity({x=0,y=0,z=0})
self.object:set_velocity({x=0,y=0,z=0})
return self
end
if self.autoglitchfix then -- becaouse model sizes more then 200kb making it glitch >_<
self.object:moveto(npos)
self.object:move_to(npos)
return self
else
local ta=self.target:getpos()
local ta=self.target:get_pos()
if ta==nil then return self end
local v={x = (npos.x - ta.x)*4, y = (npos.y - ta.y)*4, z = (npos.z - ta.z)*4}
if npos.y - ta.y>2 or npos.y - ta.y<-3 then
self.time=0.1
self.autoglitchfix=1
self.object:setvelocity({x=0,y=0,z=0})
self.object:set_velocity({x=0,y=0,z=0})
return self
end
self.object:setvelocity(v)
self.object:set_velocity(v)
end
else
self.throw_timer=self.throw_timer+dtime
local v=self.object:getvelocity()
local pos=self.object:getpos()
local v=self.object:get_velocity()
local pos=self.object:get_pos()
for i, ob in pairs(minetest.get_objects_inside_radius(pos, 1.7)) do
if ((ob:is_player() and ob:get_player_name()~=self.user:get_player_name()) or (ob:get_luaentity() and ob:get_luaentity().ggunpower==nil)) and (not ob:get_attach()) then
local igpos=ob:getpos()
local igpos=ob:get_pos()
igpos=math.floor(igpos.x+igpos.y+igpos.z)
if igpos~=self.ignore then
self.ignore=igpos
@ -219,18 +219,18 @@ on_step= function(self, dtime)
local a2=c[4]+c[5]+c[6]
if a1<a2 then a1=a2 end
if a1<=self.damage then
local objpos=ob:getpos()
local objpos=ob:get_pos()
vexcazer_gravity_power.item=self.item
vexcazer_gravity_power.user=self.user
vexcazer_gravity_power.target=ob
local m=minetest.env:add_entity(objpos, "vexcazer_gravity:power")
local m=minetest.add_entity(objpos, "vexcazer_gravity:power")
ob:set_attach(m, "", {x=0,y=0,z=0}, {x=0,y=0,z=0})
local v=self.object:getvelocity()
local v=self.object:get_velocity()
if minetest.get_node({x=objpos.x,y=objpos.y-1,z=objpos.z}).name~="air" then
m:moveto({x=objpos.x,y=objpos.y+0.2,z=objpos.z})
m:move_to({x=objpos.x,y=objpos.y+0.2,z=objpos.z})
end
local sv={x=v.x*0.9,y=v.y*0.9,z=v.z*0.9}
self.object:setvelocity(sv)
self.object:set_velocity(sv)
m:right_click(self.user)
end
end
@ -252,8 +252,8 @@ on_step= function(self, dtime)
if self.throw_timer>=self.throw_time then
self.target:set_detach()
if self.target~=nil and self.target:get_luaentity() then
self.target:setvelocity({x=self.dir.x*25, y=self.dir.y*25, z=self.dir.z*25})
self.target:setacceleration({x=0, y=-8, z=0})
self.target:set_velocity({x=self.dir.x*25, y=self.dir.y*25, z=self.dir.z*25})
self.target:set_acceleration({x=0, y=-8, z=0})
end
self.object:set_hp(0)
self.object:punch(self.object,1,{full_punch_interval=1,damage_groups={fleshy=4}})
@ -395,7 +395,7 @@ minetest.register_entity("vexcazer_gravity:block",{
makes_footstep_sound = false,
automatic_rotate = false,
on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir)
local pos=self.object:getpos()
local pos=self.object:get_pos()
if self.object:get_hp()==1 then
self.drop=""
self.timer=1
@ -420,7 +420,7 @@ on_step= function(self, dtime)
if self.object:get_attach() then return self end
self.timer=0
self.timer2=self.timer2+1
local pos=self.object:getpos()
local pos=self.object:get_pos()
if self.timer2>10 then
self.object:set_hp(0)
self.object:punch(self.object,1,{full_punch_interval=1,damage_groups={fleshy=4}})
@ -442,4 +442,4 @@ vexcazer.registry_mode({
wear_on_use=2,
on_place=vex_gravity,
on_use=vex_gravity,
})
})

View File

@ -22,7 +22,7 @@ local massive=function(itemstack, user, pointed_thing,input)
input.max_amount=vexcazer.round(input.max_amount/2)
if stack_count_left>input.max_amount then stack_count_left=stack_count end
if stack_count>input.max_amount then
minetest.sound_play("vexcazer_error", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
minetest.chat_send_player(input.user_name, "<vexcazer> Maximum count: " .. input.max_amount)
return false
end
@ -41,7 +41,7 @@ local massive=function(itemstack, user, pointed_thing,input)
break
end
if i==32 then
minetest.sound_play("vexcazer_error", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
minetest.chat_send_player(input.user_name, "You need more blocks to place (will place: ".. allblocks .. " missing: " .. allblocks-stackcount .. ")")
return false
end
@ -66,7 +66,7 @@ local massive=function(itemstack, user, pointed_thing,input)
nfree=nfree+1
if tmpnfree<=0 then break end
end
minetest.sound_play("vexcazer_error", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
minetest.chat_send_player(input.user_name, "You need a more empty inventory to dig (will dig: ".. allblocks .. " need empty slots: " .. nfree .. ")")
return false
end
@ -105,15 +105,15 @@ local massive=function(itemstack, user, pointed_thing,input)
if dig then
if allblocks<1000 then
minetest.sound_play("vexcazer_massivedig", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massivedig", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
else
minetest.sound_play("vexcazer_massive3ddig", {pos = user:getpos(), gain = 1.0, max_hear_distance = 15,})
minetest.sound_play("vexcazer_massive3ddig", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 15,})
end
else
if allblocks<1000 then
minetest.sound_play("vexcazer_massiveplace", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massiveplace", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
else
minetest.sound_play("vexcazer_massive3dplace", {pos = user:getpos(), gain = 1.0, max_hear_distance = 15,})
minetest.sound_play("vexcazer_massive3dplace", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 15,})
end
end
end
@ -131,4 +131,4 @@ vexcazer.registry_mode({
on_place=function(itemstack, user, pointed_thing,input)
massive(itemstack, user, pointed_thing,input)
end
})
})

View File

@ -6,9 +6,9 @@ local nuke=function(itemstack, user, pointed_thing,input,a,g)
if pointed_thing.type=="node" then
pos=pointed_thing.under
elseif pointed_thing.type=="object" then
pos=pointed_thing.ref:getpos()
pos=pointed_thing.ref:get_pos()
else
pos=user:getpos()
pos=user:get_pos()
end
for i, ob in pairs(minetest.get_objects_inside_radius(pos, a)) do
if not (ob:is_player() and ob:get_player_name()==name) then
@ -19,15 +19,15 @@ local nuke=function(itemstack, user, pointed_thing,input,a,g)
end
for i, ob in pairs(minetest.get_objects_inside_radius(pos, a)) do
if not (ob:is_player() and ob:get_player_name()==name) then
local pos2=ob:getpos()
local pos2=ob:get_pos()
local d=math.max(1,vector.distance(pos,pos2))
local dmg=(8/d)*a
if ob:get_luaentity() then
ob:setvelocity({x=(pos2.x-pos.x)*dmg, y=(pos2.y-pos.y)*dmg, z=(pos2.z-pos.z)*dmg})
ob:set_velocity({x=(pos2.x-pos.x)*dmg, y=(pos2.y-pos.y)*dmg, z=(pos2.z-pos.z)*dmg})
elseif ob:is_player() then
local d=dmg/4
local pos3={x=(pos2.x-pos.x)*d, y=(pos2.y-pos.y)*d, z=(pos2.z-pos.z)*d}
ob:setpos({x=pos.x+pos3.x,y=pos.y+pos3.y,z=pos.z+pos3.z,})
ob:set_pos({x=pos.x+pos3.x,y=pos.y+pos3.y,z=pos.z+pos3.z,})
end
c2=c2+1
end
@ -51,4 +51,4 @@ vexcazer.registry_mode({
on_use=function(itemstack, user, pointed_thing,input)
nuke(itemstack, user, pointed_thing,input,25,0.5)
end,
})
})

View File

@ -33,12 +33,12 @@ allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local item=stack:get_name()
if player:get_player_name()~=meta:get_string("owner") then return 0 end
if listname=="tool" and (item=="vexcazer:default" or item=="vexcazer:controler") then
minetest.env:get_node_timer(pos):start(1)
minetest.get_node_timer(pos):start(1)
return 1
end
local name=stack:get_name()
if listname=="burn" and (name~="vexcazer:default" and name~="vexcazer:mod" and name~="vexcazer:admin" and name~="default:mese") then
minetest.env:get_node_timer(pos):start(1)
minetest.get_node_timer(pos):start(1)
return stack:get_count()
end
return 0
@ -129,4 +129,4 @@ on_timer = function (pos, elapsed)
return false
end
end,
})
})

View File

@ -34,7 +34,7 @@ local radio=function(itemstack, user, pointed_thing,input,selective)
if stack_count>input.max_amount*2 then
stack_count=input.max_amount*2
--minetest.sound_play("vexcazer_error", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
--minetest.sound_play("vexcazer_error", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
--minetest.chat_send_player(input.user_name, "<vexcazer> Maximum count: " .. input.max_amount)
--return false
end
@ -53,7 +53,7 @@ local radio=function(itemstack, user, pointed_thing,input,selective)
break
end
if i==32 then
minetest.sound_play("vexcazer_error", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
minetest.chat_send_player(input.user_name, "You need more blocks to place (will place: ".. allblocks .. " missing: " .. allblocks-stackcount .. ")")
return false
end
@ -78,7 +78,7 @@ local radio=function(itemstack, user, pointed_thing,input,selective)
nfree=nfree+1
if tmpnfree<=0 then break end
end
minetest.sound_play("vexcazer_error", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_error", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
minetest.chat_send_player(input.user_name, "You need a more empty inventory to dig (will dig: ".. allblocks .. " need empty slots: " .. nfree .. ")")
return false
end
@ -104,15 +104,15 @@ local radio=function(itemstack, user, pointed_thing,input,selective)
if dig then
if allblocks<1000 then
minetest.sound_play("vexcazer_massivedig", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massivedig", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
else
minetest.sound_play("vexcazer_massive3ddig", {pos = user:getpos(), gain = 1.0, max_hear_distance = 15,})
minetest.sound_play("vexcazer_massive3ddig", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 15,})
end
else
if allblocks<1000 then
minetest.sound_play("vexcazer_massiveplace", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
minetest.sound_play("vexcazer_massiveplace", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
else
minetest.sound_play("vexcazer_massive3dplace", {pos = user:getpos(), gain = 1.0, max_hear_distance = 15,})
minetest.sound_play("vexcazer_massive3dplace", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 15,})
end
end
end
@ -143,4 +143,4 @@ vexcazer.registry_mode({
on_place=function(itemstack, user, pointed_thing,input)
radio(itemstack, user, pointed_thing,input,"a")
end
})
})

View File

@ -40,7 +40,7 @@ local teleport=function(itemstack, user, pointed_thing,input,object)
local tp2node1=minetest.registered_nodes[minetest.get_node({ x=pos.x, y=pos.y+1, z=pos.z}).name]
local tp2node2=minetest.registered_nodes[minetest.get_node({ x=pos.x, y=pos.y+2, z=pos.z}).name]
if (tp2node1.walkable==false and tp2node2.walkable==false) then
if input.default and user:getpos().y<=pos.y then
if input.default and user:get_pos().y<=pos.y then
local walkable=0
local tp2node1=minetest.registered_nodes[minetest.get_node({ x=pos.x, y=pos.y, z=pos.z}).name].walkable==false
local tp2node2=minetest.registered_nodes[minetest.get_node({ x=pos.x+1, y=pos.y, z=pos.z}).name].walkable==false
@ -73,15 +73,15 @@ local teleport=function(itemstack, user, pointed_thing,input,object)
user=ob
end
user:moveto({ x=pos.x, y=pos.y+1, z=pos.z },false)
minetest.sound_play("vexcazer_teleport", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
user:move_to({ x=pos.x, y=pos.y+1, z=pos.z },false)
minetest.sound_play("vexcazer_teleport", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
else
if object and vexcazer.teleport[input.user_name] then
user=vexcazer.teleport[input.user_name].target
if user:is_player()==false then pointed_thing.above.y=pointed_thing.above.y+1 end
end
user:moveto(pointed_thing.above,false)
minetest.sound_play("vexcazer_teleport", {pos = user:getpos(), gain = 1.0, max_hear_distance = 10,})
user:move_to(pointed_thing.above,false)
minetest.sound_play("vexcazer_teleport", {pos = user:get_pos(), gain = 1.0, max_hear_distance = 10,})
end
end
@ -105,4 +105,4 @@ vexcazer.registry_mode({
teleport(itemstack, user, pointed_thing,input,true)
end
end
})
})

View File

@ -6,7 +6,7 @@ vexcazer.registry_mode({
wear_on_place=0,
disallow_damage_on_use=true,
on_place=function(itemstack, user, pointed_thing,input)
local pos=user:getpos()
local pos=user:get_pos()
if minetest.is_protected(pos, input.user_name) then
minetest.chat_send_player(input.user_name, "<vexcazer> Travel: this position is protected")
return
@ -24,7 +24,7 @@ vexcazer.registry_mode({
minetest.chat_send_player(input.user_name, "<vexcazer> Travel: this position ".. spos .." is protected")
return
end
user:moveto(pos)
user:move_to(pos)
end,
})
@ -35,7 +35,7 @@ vexcazer.registry_mode({
wear_on_place=0,
disallow_damage_on_use=true,
on_place=function(itemstack, user, pointed_thing,input)
local pos=user:getpos()
local pos=user:get_pos()
if minetest.is_protected(pos, input.user_name) then
minetest.chat_send_player(input.user_name, "<vexcazer> Travel: this position is protected")
return
@ -53,6 +53,6 @@ vexcazer.registry_mode({
minetest.chat_send_player(input.user_name, "<vexcazer> Travel: this position ".. spos .." is protected")
return
end
user:moveto(pos)
user:move_to(pos)
end,
})
})