diff options
author | root <root@linuxworks.belug.de> | 2018-02-27 23:29:58 +0100 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2018-02-27 23:29:58 +0100 |
commit | bec61e67ac4375763f9a8be96f8ad3f869ed83a3 (patch) | |
tree | 1fbef892354b32e739d6d2063a019e8c06df7d49 /extranodes | |
parent | b47fe4432385bc8cf678263b7bf395ec26d80fd6 (diff) | |
parent | 7216f9064a4f8ec1f5ca6cbee8c63b4e11fa5343 (diff) |
Merge https://github.com/h-v-smacker/technic
Diffstat (limited to 'extranodes')
-rw-r--r-- | extranodes/init.lua | 40 | ||||
-rw-r--r-- | extranodes/textures/technic_aspirin_bottle.png | bin | 0 -> 569 bytes | |||
-rw-r--r-- | extranodes/textures/technic_aspirin_pill.png | bin | 0 -> 292 bytes |
3 files changed, 39 insertions, 1 deletions
diff --git a/extranodes/init.lua b/extranodes/init.lua index 4b304b1..5ed5f5f 100644 --- a/extranodes/init.lua +++ b/extranodes/init.lua @@ -195,4 +195,42 @@ minetest.register_craft({ type = "cooking", output = "technic:diamond_seed", recipe = "technic:graphite" -})
\ No newline at end of file +}) + +-- aspirin + +-- makes any sence only when there is hunger as a separate status of the player +-- also it uses willow twigs - ethereal dependency + +if minetest.get_modpath("hunger") and minetest.get_modpath("ethereal") then + + minetest.register_craftitem(":technic:aspirin_pill", { + description = "Aspirin pill", + inventory_image = "technic_aspirin_pill.png", + on_use = function(itemstack, user, pointed_thing) + user:set_hp(user:get_hp() + 2) + itemstack:take_item() + return itemstack + end + }) + + minetest.register_craftitem(":technic:aspirin_bottle", { + description = "Aspirin pills", + inventory_image = "technic_aspirin_bottle.png", + on_use = function(itemstack, user, pointed_thing) + user:set_hp(20) + itemstack:take_item() + return itemstack + end + }) + + minetest.register_craft({ + type = "shapeless", + output = "technic:aspirin_bottle", + recipe = {"technic:aspirin_pill", "technic:aspirin_pill", + "technic:aspirin_pill", "technic:aspirin_pill", + "technic:aspirin_pill", "technic:aspirin_pill", + "technic:aspirin_pill", "vessels:glass_bottle"} + }) + +end
\ No newline at end of file diff --git a/extranodes/textures/technic_aspirin_bottle.png b/extranodes/textures/technic_aspirin_bottle.png Binary files differnew file mode 100644 index 0000000..64c2b03 --- /dev/null +++ b/extranodes/textures/technic_aspirin_bottle.png diff --git a/extranodes/textures/technic_aspirin_pill.png b/extranodes/textures/technic_aspirin_pill.png Binary files differnew file mode 100644 index 0000000..f7fccb8 --- /dev/null +++ b/extranodes/textures/technic_aspirin_pill.png |