mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-30 06:21:05 +01:00
Disable villager trading again
This commit is contained in:
parent
e5c7e50202
commit
a9cf744c0b
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,7 @@ mobs:register_mob("mobs_mc:villager", {
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
fear_height = 4,
|
fear_height = 4,
|
||||||
|
--[[
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
local inv
|
local inv
|
||||||
inv = minetest.get_inventory({type="detached", name="trading_inv"})
|
inv = minetest.get_inventory({type="detached", name="trading_inv"})
|
||||||
|
@ -203,6 +204,7 @@ mobs:register_mob("mobs_mc:villager", {
|
||||||
minetest.sound_play("mobs_mc_villager_trade", {to_player = clicker:get_player_name()})
|
minetest.sound_play("mobs_mc_villager_trade", {to_player = clicker:get_player_name()})
|
||||||
minetest.show_formspec(clicker:get_player_name(), "mobs_mc:trade", formspec)
|
minetest.show_formspec(clicker:get_player_name(), "mobs_mc:trade", formspec)
|
||||||
end,
|
end,
|
||||||
|
]]
|
||||||
})
|
})
|
||||||
|
|
||||||
mobs:spawn_specific("mobs_mc:villager", mobs_mc.spawn.village, {"air"}, 0, minetest.LIGHT_MAX+1, 30, 8000, 4, mobs_mc.spawn_height.water+1, mobs_mc.spawn_height.overworld_max)
|
mobs:spawn_specific("mobs_mc:villager", mobs_mc.spawn.village, {"air"}, 0, minetest.LIGHT_MAX+1, 30, 8000, 4, mobs_mc.spawn_height.water+1, mobs_mc.spawn_height.overworld_max)
|
||||||
|
|
Loading…
Reference in a new issue