Default: Oops
This commit is contained in:
parent
8033e3213b
commit
f32ca40892
|
@ -1,8 +1,3 @@
|
|||
--To add or delete items modify the lines below.
|
||||
--Add or delete local item#
|
||||
--For each local item# add or delete the minetest.spawn_item in the next section.
|
||||
|
||||
|
||||
local item_spawn = function(pos, node)
|
||||
minetest.spawn_item({x=pos.x-0.4,y=pos.y+0.58,z=pos.z-0.2}, "default:steel_ingot 2")
|
||||
minetest.spawn_item({x=pos.x,y=pos.y+0.58,z=pos.z}, "default:emerald")
|
||||
|
@ -33,7 +28,7 @@ minetest.register_node("bonusbox:chest", {
|
|||
{-0.483652, 0.246909, -0.483652, 0.483652, 0.5, 0.169932}, -- NodeBox4
|
||||
}
|
||||
},
|
||||
groups = {choppy = 2},
|
||||
groups = {choppy = 2, not_in_creative_inventory=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_rightclick = item_spawn,
|
||||
})
|
||||
|
|
|
@ -190,7 +190,7 @@ crafting.set_creative_formspec = function(player, start_i, pagenum, show, page,
|
|||
reset_menu_item_bg()
|
||||
pagenum = math.floor(pagenum) or 1
|
||||
local pagemax = math.floor((crafting.creative_inventory_size-1) / (9*5) + 1)
|
||||
local slider_height = 4/pagemax
|
||||
local slider_height = 4.15/pagemax
|
||||
local slider_pos = slider_height*(pagenum-1)+2.2
|
||||
local player_name = player:get_player_name()
|
||||
crafting.start_is[player_name] = start_i
|
||||
|
@ -279,7 +279,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
end
|
||||
if fields.default then
|
||||
set_inv("all")
|
||||
page = 'nix'
|
||||
page = nil
|
||||
end
|
||||
if fields.food then
|
||||
set_inv("#food")
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 401 B |
|
@ -277,7 +277,7 @@ core.register_entity(":__builtin:item", {
|
|||
end
|
||||
if item_drop_settings.random_item_velocity == true then
|
||||
minetest.after(0, function()
|
||||
local vel = self.object:getvelocity()
|
||||
local vel = self.object:getvelocity() or {x=0, y=0, z=0}
|
||||
if vel.x == 0 and vel.z == 0 then
|
||||
local x = math.random(1, 5)
|
||||
if math.random(1,2) == 1 then
|
||||
|
|
Loading…
Reference in New Issue