Show barrier positions when wielding barrier
This commit is contained in:
parent
0544f5a5ce
commit
bb9d6cf037
2 changed files with 42 additions and 0 deletions
|
@ -21,6 +21,18 @@ minetest.register_node("mcl_core:barrier", {
|
|||
on_blast = function() end,
|
||||
drop = "",
|
||||
_mcl_blast_resistance = 18000003,
|
||||
after_place_node = function (pos, placer, itemstack, pointed_thing)
|
||||
if placer == nil then
|
||||
return
|
||||
end
|
||||
minetest.add_particle({
|
||||
pos = pos,
|
||||
expirationtime = 1,
|
||||
size = 8,
|
||||
texture = "default_barrier.png",
|
||||
playername = placer:get_player_name()
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
-- The void below the bedrock. Void damage is handled in playerplus.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue