forked from MineClone5/MineClone5
Merge remote-tracking branch 'origin/master' into testing
This commit is contained in:
commit
df7a630aec
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 475 B |
Binary file not shown.
After Width: | Height: | Size: 581 B |
|
@ -33,7 +33,8 @@ minetest.register_node("mcl_nether:glowstone", {
|
|||
min_count = 2,
|
||||
max_count = 4,
|
||||
cap = 4,
|
||||
}
|
||||
},
|
||||
|
||||
})
|
||||
|
||||
minetest.register_node("mcl_nether:quartz_ore", {
|
||||
|
@ -120,8 +121,8 @@ minetest.register_node("mcl_nether:netherrack", {
|
|||
-- Eternal fire on top
|
||||
after_destruct = eternal_after_destruct,
|
||||
_on_ignite = eternal_on_ignite,
|
||||
on_rightclick = function(pos, node, pointed_thing, itemstack)
|
||||
if pointed_thing:get_wielded_item():get_name() == "mcl_dye:white" then
|
||||
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
|
||||
if player:get_wielded_item():get_name() == "mcl_dye:white" then
|
||||
itemstack:take_item()
|
||||
local ni = 0 -- stand for neigbour item
|
||||
for x = pos.x - 1,pos.x + 1 do
|
||||
|
@ -146,6 +147,14 @@ minetest.register_node("mcl_nether:netherrack", {
|
|||
|
||||
if ni == 1 then minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name="mcl_mushroom:warped_nylium"})
|
||||
elseif ni == 2 then minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name="mcl_mushroom:crimson_nylium"}) end
|
||||
else
|
||||
--player:get_wielded_item():get_definition().on_place(itemstack, player, node)
|
||||
if not (pointed_thing == nil) and pointed_thing.type == "node" then
|
||||
minetest.place_node(minetest.get_pointed_thing_position(pointed_thing, true), {name = player:get_wielded_item():get_name()})
|
||||
if not (minetest.check_player_privs(player, {creative=true})) and not (minetest.settings:get_bool("creative_mode")) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue