1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Create spiky cactus, make the original smoother

- Remove spikes from the standard cactus' side
 - Remove spikes from all cacti's tops, and add a flower
 - Add specific texture for spiky cactus
 - Create spiky cactus and recipes to convert spiky cactus and cactus
 - Move damages from normal cactus to spiky cactus
 - For #500
This commit is contained in:
LeMagnesium
2016-09-29 21:44:22 +02:00
parent 59c4c8e919
commit 21f6ac6818
6 changed files with 35 additions and 2 deletions

View File

@ -104,9 +104,9 @@ minetest.register_globalstep(function(dtime)
if gameTime > 0.4 then
local pos = player:getpos()
-- From playerplus :
-- am I near a cactus?
-- am I near a spiky cactus?
pos.y = pos.y + 0.1
if minetest.find_node_near(pos, 1, "default:cactus") and player:get_hp() > 0 then
if minetest.find_node_near(pos, 1, "default:cactus_spiky") and player:get_hp() > 0 then
player:set_hp(player:get_hp()-1)
end