Added player_api

This commit is contained in:
2022-11-21 21:58:39 -05:00
parent c77289c9ca
commit 889b9f0b59
15 changed files with 350 additions and 6 deletions

View File

@@ -1,16 +1,16 @@
minetest.register_abm({
nodenames = {"poop:poop"},
nodenames = {"poop:grey_bricks"},
interval = 10,
chance = 50,
chance = 90,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.add_entity(pos, "robocops:robocop")
minetest.add_entity({x = pos.x, y = pos.y + 1, z = pos.z}, "robocops:robocop")
end
})
mobs:register_mob("robocops:robocop", {
type = "monster",
passive = false,
attack_type = "dogshoot",
attack_type = "dogfight",
pathfinding = true,
reach = 2,
damage = 3,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 247 B