Ignite tnt minecart by fire charge
This commit is contained in:
parent
9f344b4307
commit
04c8a08cc4
4 changed files with 30 additions and 6 deletions
|
@ -95,6 +95,15 @@ mobs:register_arrow("mobs_mc:blaze_fireball", {
|
|||
}, nil)
|
||||
end,
|
||||
|
||||
hit_object = function(self, object)
|
||||
local lua = object:get_luaentity()
|
||||
if lua then
|
||||
if lua.name == "mcl_minecarts:tnt_minecart" then
|
||||
lua:on_activate_by_rail(2)
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
-- Node hit, make fire
|
||||
hit_node = function(self, pos, node)
|
||||
if node.name == "air" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue