Regnum 2 1.3.4 upload
parent
651d041923
commit
8156fb9cf4
|
@ -14,6 +14,10 @@ sfinv.register_page("sfinv:crafting", {
|
|||
image[4.75,1.5;1,1;sfinv_crafting_arrow.png]
|
||||
listring[current_player;main]
|
||||
listring[current_player;craft]
|
||||
image_button[0,0;1.6,1.6;inventory_plus_inven.png;inven;]
|
||||
label[0.3,1.5;selection]
|
||||
button[6.6,1.4;1.5,0.5;craft10;Craft (10)]
|
||||
button[6.6,2.2;1.5,0.5;craft99;Craft (99)]
|
||||
]], true)
|
||||
end
|
||||
})
|
||||
|
|
|
@ -14,7 +14,7 @@ minetest.register_on_joinplayer(function(player)
|
|||
offset = {x=0, y=30},
|
||||
alignment = {x=1, y=0},
|
||||
number = 0xFFFFFF ,
|
||||
text = "Game Version : 1.3.3",
|
||||
text = "Game Version : 1.3.4",
|
||||
})
|
||||
end)
|
||||
|
||||
|
@ -74,6 +74,40 @@ minetest.register_craftitem("tutorial:spawn_egg", {
|
|||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("tutorial:trophy_year3", {
|
||||
description = "Three years Regnum 2!!",
|
||||
tiles = {
|
||||
"tutorial_trophy_year3.png"
|
||||
},
|
||||
groups = { snappy=3 },
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, -0.5, -0.125, 0.1875, -0.4375, 0.1875}, -- NodeBox1
|
||||
{-0.0625, -0.4375, -0.0625, 0.125, -0.375, 0.125}, -- NodeBox2
|
||||
{-0.02, -0.375, -0.02, 0.0825, -0.1875, 0.0825}, -- NodeBox3
|
||||
{-0.0625, -0.1875, -0.0625, 0.125, -0.125, 0.125}, -- NodeBox4
|
||||
{-0.125, -0.1875, -0.0625, -0.0625, 0.125, 0.125}, -- NodeBox5
|
||||
{0.125, -0.1875, -0.0625, 0.1875, 0.125, 0.125}, -- NodeBox6
|
||||
{-0.125, -0.1875, 0.125, 0.1875, 0.125, 0.1875}, -- NodeBox7
|
||||
{-0.125, -0.1875, -0.125, 0.1875, 0.125, -0.0625}, -- NodeBox8
|
||||
{-0.0625, -0.25, -0.0625, 0.125, -0.1875, 0.125}, -- NodeBox9
|
||||
{0.1875, 0.05, 0, 0.23, 0.0925, 0.0625}, -- NodeBox10
|
||||
{0.1875, -0.15, 0, 0.23, -0.11, 0.0625}, -- NodeBox11
|
||||
{0.23, -0.15, 0, 0.2725, 0.0925, 0.0625}, -- NodeBox12
|
||||
{-0.1675, -0.15, 0, -0.125, -0.11, 0.0625}, -- NodeBox13
|
||||
{-0.1675, 0.05, 0, -0.125, 0.0925, 0.0625}, -- NodeBox14
|
||||
{-0.21, -0.15, 0, -0.1675, 0.0925, 0.0625}, -- NodeBox15
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.21, -0.5, -0.125, 0.2725, 0.125, 0.1875 }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("tutorial:trophy_year2", {
|
||||
description = "Two years Regnum 2!!",
|
||||
tiles = {
|
||||
|
@ -604,11 +638,11 @@ minetest.register_globalstep(function(dtime)
|
|||
player:set_nametag_attributes({color = {a = 255, r = 255, g = 0, b = 0}, text = "[Youtuber][Enemy]"..player:get_player_name()})
|
||||
end
|
||||
end
|
||||
--player_inv:set_size("year", 2)
|
||||
--if player_inv:room_for_item("main", "tutorial:trophy_year2") and player_inv:get_stack("year", 2):get_count() == 0 then
|
||||
-- player_inv:add_item("main", "tutorial:trophy_year2")
|
||||
-- player_inv:set_stack("year", 2, "default:dirt")
|
||||
--end
|
||||
player_inv:set_size("year", 3)
|
||||
if player_inv:room_for_item("main", "tutorial:trophy_year3") and player_inv:get_stack("year", 3):get_count() == 0 then
|
||||
player_inv:add_item("main", "tutorial:trophy_year3")
|
||||
player_inv:set_stack("year", 3, "default:dirt")
|
||||
end
|
||||
local stack = player:get_inventory():get_stack("heart", 1)
|
||||
player:set_attribute("hpnum", player:get_hp())
|
||||
local new_max_hp = 20
|
||||
|
|
|
@ -5,9 +5,10 @@ ach3.get_formspec = function(player, pos)
|
|||
return
|
||||
end
|
||||
local player_inv = player:get_inventory()
|
||||
player_inv:set_size("year", 2)
|
||||
player_inv:set_size("year", 3)
|
||||
local year = player_inv:get_stack("year", 1):get_count()
|
||||
local year2 = player_inv:get_stack("year", 2):get_count()
|
||||
local year3 = player_inv:get_stack("year", 3):get_count()
|
||||
local d = 0
|
||||
if year == 1 then
|
||||
d = d+1
|
||||
|
@ -23,9 +24,11 @@ ach3.get_formspec = function(player, pos)
|
|||
.."button[2,0;2,0.5;main;Main]"
|
||||
.."label[0.8,1.1;One year Trophy]"
|
||||
.."label[0.8,1.9;Two years Trophy]"
|
||||
.."label[5.5,0;"..d.."/2]"
|
||||
.."label[0.8,2.7;Three years Trophy]"
|
||||
.."label[5.5,0;"..d.."/3]"
|
||||
.."image[0,1;0.8,0.8;tutorial_"..year..".png]"
|
||||
.."image[0,1.8;0.8,0.8;tutorial_"..year2..".png]"
|
||||
.."image[0,2.6;0.8,0.8;tutorial_"..year3..".png]"
|
||||
return formspec
|
||||
end
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
|
@ -41,12 +44,15 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
end
|
||||
if fields.achc then
|
||||
local player_inv = player:get_inventory()
|
||||
player_inv:set_size("year", 2)
|
||||
player_inv:set_size("year", 3)
|
||||
if player:get_inventory():contains_item("main", "tutorial:trophy_year1") then
|
||||
player_inv:set_stack("year", 1,"tutorial:dirt")
|
||||
end
|
||||
if player:get_inventory():contains_item("main", "tutorial:trophy_year2") then
|
||||
player_inv:set_stack("year", 2,"tutorial:dirt")
|
||||
end
|
||||
if player:get_inventory():contains_item("main", "tutorial:trophy_year3") then
|
||||
player_inv:set_stack("year", 3,"tutorial:dirt")
|
||||
end
|
||||
inventory_plus.set_inventory_formspec(player, ach3.get_formspec(player))
|
||||
end
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 517 B |
Loading…
Reference in New Issue