mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
update cow texture inventaire
update formspec mob spawner
This commit is contained in:
parent
28e28289f2
commit
df1fcfb625
@ -1,19 +1,19 @@
|
|||||||
--Menu mobs spawner
|
--Menu mobs spawner
|
||||||
mobs.shown_spawner_menu = function(player_name)
|
mobs.shown_spawner_menu = function(player_name)
|
||||||
local formspec = {"size[7,9]label[2.7,0;Mobs Spawner]"}
|
local formspec = {"size[8,9]label[2.7,0;Mobs Spawner]"}
|
||||||
if mobs["spawning_mobs"] ~= nil then
|
if mobs["spawning_mobs"] ~= nil then
|
||||||
local Y = 1
|
local Y = 1
|
||||||
local X = 1
|
local X = 1
|
||||||
for name, etat in pairs(mobs["spawning_mobs"]) do
|
for name, etat in pairs(mobs["spawning_mobs"]) do
|
||||||
table.insert(formspec, "item_image_button["..X..","..Y..";1,1;"..name..";"..name..";]")
|
table.insert(formspec, "item_image_button["..X..","..Y..";1,1;"..name..";"..name..";]")
|
||||||
X = X+1
|
X = X+1
|
||||||
if X > 5 then
|
if X > 6 then
|
||||||
X = 1
|
X = 1
|
||||||
Y = Y+1.2
|
Y = Y+1.2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
table.insert(formspec, "button_exit[2.9,8.5;1.2,1;close;Close]")
|
table.insert(formspec, "button_exit[3.9,8.5;1.2,1;close;Close]")
|
||||||
minetest.show_formspec(player_name, "mobs:spawner", table.concat(formspec))
|
minetest.show_formspec(player_name, "mobs:spawner", table.concat(formspec))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
BIN
mods/mobs/textures/mobs_cow_inv.png
Executable file → Normal file
BIN
mods/mobs/textures/mobs_cow_inv.png
Executable file → Normal file
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.2 KiB |
Loading…
Reference in New Issue
Block a user