Charakterbewegungen hinzugefügt, Deko hinzugefügt, Kochrezepte angepasst
This commit is contained in:
parent
95945c0306
commit
a0c893ca0b
1124 changed files with 64294 additions and 763 deletions
29
mods/moreblocks/invsaw/formspec.lua
Normal file
29
mods/moreblocks/invsaw/formspec.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
local station = stairsplus.api.station
|
||||
local circular_saw = stairsplus.api.circular_saw
|
||||
|
||||
function invsaw.show_formspec(player)
|
||||
local name = player:get_player_name()
|
||||
local meta = player:get_meta()
|
||||
local inv = player:get_inventory()
|
||||
|
||||
minetest.show_formspec(name, "invsaw", circular_saw.build_formspec(meta, inv))
|
||||
end
|
||||
|
||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
local meta = player:get_meta()
|
||||
local inv = player:get_inventory()
|
||||
|
||||
if fields.saw then
|
||||
if invsaw.allow_use_saw(player) then
|
||||
invsaw.show_formspec(player)
|
||||
end
|
||||
|
||||
return true
|
||||
elseif station.on_receive_fields(meta, inv, formname, fields, player) then
|
||||
if invsaw.allow_use_saw(player) then
|
||||
invsaw.show_formspec(player)
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue