aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_http.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2017-09-15 12:18:47 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-09-15 12:18:47 +0200
commitedbc533414b0ba991a82f8003d90924e1dc60d95 (patch)
tree9fe4c04bc35f345e9a62f1358fa5e0ad324938e9 /src/script/lua_api/l_http.h
parent7640749d68b87a62868840d34a665101861ca9c0 (diff)
downloadminetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.gz
minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.bz2
minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.zip
Customizeable max breath for players (#6411)
* Customizeable maximal breath for players
Diffstat (limited to 'src/script/lua_api/l_http.h')
0 files changed, 0 insertions, 0 deletions
ref='#n127'>127 128 129 130 131 132 133 134 135 136 137 138

minetest.register_tool("advtrains:1",
	{
		description = "1",
		groups = {cracky=1}, -- key=name, value=rating; rating=1..3.
		inventory_image = "drwho_screwdriver.png",
		wield_image = "drwho_screwdriver.png",
		stack_max = 1,
		range = 7.0,
	on_use = function(itemstack, user, pointed_thing)
	pos1=pointed_thing.under
end,
})
minetest.register_tool("advtrains:2",
	{
		description = "2",
		groups = {cracky=1}, -- key=name, value=rating; rating=1..3.
		inventory_image = "drwho_screwdriver.png",
		wield_image = "drwho_screwdriver.png",
		stack_max = 1,
		range = 7.0,
		on_use = function(itemstack, user, pointed_thing)
		pos2=pointed_thing.under
	end,
})
minetest.register_tool("advtrains:3",
	{
		description = "3",
		groups = {cracky=1}, -- key=name, value=rating; rating=1..3.
		inventory_image = "drwho_screwdriver.png",
		wield_image = "drwho_screwdriver.png",
		stack_max = 1,
		range = 7.0,
		on_use = function(itemstack, user, pointed_thing)
		pos3=pointed_thing.under
	end,
})
minetest.register_tool("advtrains:4",
	{
		description = "4",
		groups = {cracky=1}, -- key=name, value=rating; rating=1..3.
		inventory_image = "drwho_screwdriver.png",
		wield_image = "drwho_screwdriver.png",
		stack_max = 1,
		range = 7.0,
		on_use = function(itemstack, user, pointed_thing)
		pos4=pointed_thing.under
	end,
})
core.register_chatcommand("mad", {
	params="",
	description="",
	privs={},
	func = function(name, param)
	return true, advtrains.get_wagon_yaw(pos1, pos2, pos3, pos4, tonumber(param))*360/(2*math.pi)
end,
})

advtrains.firstobject=nil
minetest.register_tool("advtrains:connect",
{
	description = "connect wagons tool",
	groups = {cracky=1}, -- key=name, value=rating; rating=1..3.
	inventory_image = "drwho_screwdriver.png",
	wield_image = "drwho_screwdriver.png",
	stack_max = 1,
	range = 7.0,
		
	on_place = function(itemstack, placer, pointed_thing)
	
	end,
	--[[
	^ Shall place item and return the leftover itemstack
	^ default: minetest.item_place ]]