Skip to content

Commit

Permalink
This mod is not dead, who told you that?!
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Jun 23, 2021
1 parent 5c4d0c0 commit 5cbf3aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ minetest.register_node("nc_rabbits:rabbit_hole", {
tiles = {
"nc_terrain_grass_top.png^nc_rabbits_hole.png",
"nc_terrain_dirt.png",
"nc_terrain_dirt.png^nc_terrain_grass_side.png"
"nc_terrain_dirt.png^(nc_terrain_grass_top.png^[mask:nc_terrain_grass_sidemask.png)"
},
groups = {
crumbly = 2,
Expand Down Expand Up @@ -71,7 +71,7 @@ minetest.register_abm({
local trap_time = meta:get_int("trap_time")

if trap_time == 0 then
meta:set_int("trap_time", math.random(62*5, 61*7)) -- rabbit trapping time (5-7 minutes)
meta:set_int("trap_time", math.random(60*3, 60*7)) -- rabbit trapping time (3-7 minutes)
elseif trap_time > 10 then
meta:set_int("trap_time", trap_time-10)
elseif trap_time <= 10 then
Expand Down Expand Up @@ -110,6 +110,6 @@ minetest.register_abm({
minetest.set_node(pos, {name = "nc_rabbits:rabbit_hole"})
return
end
end
end
end
})
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5cbf3aa

Please sign in to comment.