Pushing mod to GH

master
Gerold55 2020-04-07 20:35:31 -04:00
parent 88ae16fac7
commit 414f4d1dc7
5 changed files with 35 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

3
init.lua Normal file
View File

@ -0,0 +1,3 @@
edible_swords = {}
dofile(minetest.get_modpath("edible_swords").."/swords.lua")

31
swords.lua Normal file
View File

@ -0,0 +1,31 @@
minetest.register_tool("edible_swords:sword_dango", {
description = "Dango Sword",
inventory_image = "swords_dango.png",
tool_capabilities = {
full_punch_interval = 1,
max_drop_level=0,
groupcaps={
snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1},
},
damage_groups = {fleshy=2},
},
sound = {breaks = "default_tool_breaks"},
groups = {sword = 1, flammable = 2},
on_place = minetest.item_eat(1),
})
minetest.register_tool("edible_swords:sword_cc", {
description = "Cotton Candy Sword",
inventory_image = "swords_cc.png",
tool_capabilities = {
full_punch_interval = 1,
max_drop_level=0,
groupcaps={
snappy={times={[2]=1.6, [3]=0.40}, uses=10, maxlevel=1},
},
damage_groups = {fleshy=2},
},
sound = {breaks = "default_tool_breaks"},
groups = {sword = 1, flammable = 2},
on_place = minetest.item_eat(1),
})

BIN
textures/swords_cc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

BIN
textures/swords_dango.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B