mirror of
https://bitbucket.org/kingarthursteam/cannons.git
synced 2024-12-11 07:53:18 +01:00
added a settings file and craft rezieps for gunpowder and canons
This commit is contained in:
parent
5c7c677073
commit
2e8a37d9b4
8
init.lua
8
init.lua
@ -1,9 +1,13 @@
|
|||||||
enable_fire = true
|
|
||||||
enable_explosion = true
|
|
||||||
|
|
||||||
|
|
||||||
canons = {}
|
canons = {}
|
||||||
local MODPATH = minetest.get_modpath(minetest.get_current_modname())
|
local MODPATH = minetest.get_modpath(minetest.get_current_modname())
|
||||||
|
|
||||||
|
enable_fire = canons.enable_fire
|
||||||
|
enable_explosion = canons.enable_explosion
|
||||||
|
|
||||||
|
dofile(MODPATH .."/settings.txt")
|
||||||
dofile(MODPATH .."/print_r.lua")
|
dofile(MODPATH .."/print_r.lua")
|
||||||
dofile(MODPATH .."/functions.lua")
|
dofile(MODPATH .."/functions.lua")
|
||||||
dofile(MODPATH .."/items.lua")
|
dofile(MODPATH .."/items.lua")
|
||||||
|
85
items.lua
85
items.lua
@ -1,24 +1,85 @@
|
|||||||
minetest.register_craftitem("canons:gunpowder", {
|
minetest.register_craftitem("canons:gunpowder", {
|
||||||
groups = {gunpowder=1},
|
groups = {gunpowder=1},
|
||||||
Description = "Gunpowder",
|
description = "Gunpowder",
|
||||||
inventory_image = "canons_gunpowder.png"
|
inventory_image = "canons_gunpowder.png"
|
||||||
})
|
})
|
||||||
minetest.register_craftitem("canons:sulfur", {
|
|
||||||
Description = "Sulfur",
|
|
||||||
inventory_image = "canons_sulfur.png"
|
|
||||||
})
|
|
||||||
minetest.register_craftitem("canons:salt", {
|
minetest.register_craftitem("canons:salt", {
|
||||||
Description = "Salt",
|
description = "Salt",
|
||||||
inventory_image = "canons_salt.png"
|
inventory_image = "canons_salt.png"
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
|
||||||
type = "cooking",
|
minetest.register_craftitem("canons:bucket_salt", {
|
||||||
output = 'canons:salt',
|
description = "Bucket with salt",
|
||||||
recipe = 'bucket:bucket_water',
|
inventory_image = "canons_bucket_salt.png",
|
||||||
|
stack_max = 300
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = 'canons:salt 12',
|
||||||
|
recipe = {
|
||||||
|
"canons:bucket_salt"
|
||||||
|
},
|
||||||
|
replacements = {
|
||||||
|
{"canons:bucket_salt", "bucket:bucket_empty"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = 'canons:bucket_salt',
|
||||||
|
recipe = 'bucket:bucket_water',
|
||||||
|
cooktime = 15
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("canons:iron_barrel", {
|
||||||
|
groups = {canonbarrel=1},
|
||||||
|
description = "Iron Cannonbarrel",
|
||||||
|
inventory_image = "canons_barrel_iron.png",
|
||||||
|
stack_max = 10
|
||||||
|
})
|
||||||
|
minetest.register_craftitem("canons:copper_barrel", {
|
||||||
|
groups = {canonbarrel=1},
|
||||||
|
description = "copper Cannonbarrel",
|
||||||
|
inventory_image = "canons_barrel_copper.png",
|
||||||
|
stack_max = 10
|
||||||
|
})
|
||||||
|
minetest.register_craftitem("canons:mithrill_barrel", {
|
||||||
|
groups = {canonbarrel=1},
|
||||||
|
description = "mithrill Cannonbarrel",
|
||||||
|
inventory_image = "canons_barrel_mithrill.png",
|
||||||
|
stack_max = 10
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = 'canons:gunpowder',
|
||||||
|
recipe = {
|
||||||
|
"default:coal_lump", "default:mese_crystal", "canons:salt"
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'canons:iron_barrel',
|
||||||
|
recipe = {
|
||||||
|
{"default:steelblock", "default:steelblock", "default:steelblock"},
|
||||||
|
{"", "default:mese_block", ""},
|
||||||
|
{"default:steelblock", "default:steelblock", "default:steelblock"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'canons:canon',
|
||||||
|
recipe = {
|
||||||
|
{"default:cobble", "default:cobble", "default:cobble"},
|
||||||
|
{"", "group:canonbarrel", ""},
|
||||||
|
{"default:cobble", "default:cobble", "default:cobble"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craftitem("canons:stone_bullet", {
|
minetest.register_craftitem("canons:stone_bullet", {
|
||||||
Description = "Gunpowder",
|
Description = "Stone Bullet",
|
||||||
inventory_image = "canons_bullet.png"
|
inventory_image = "canons_bullet.png"
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -91,3 +152,5 @@ minetest.register_node("canons:canon", {
|
|||||||
on_metadata_inventory_move = canons.inventory_modified,
|
on_metadata_inventory_move = canons.inventory_modified,
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
16
settings.txt
Normal file
16
settings.txt
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
------------------------------------------------------------------------------
|
||||||
|
------------------------------ CONFIGURATION ---------------------------------
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
-------- Change settings by changing the values after the "=". ---------------
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
-- enable/disable the muni wich makes things burning if it hit them.
|
||||||
|
-- if you want to dissable it just set it to false:
|
||||||
|
canons.enable_fire = true
|
||||||
|
|
||||||
|
-- enable/disable the muni wich destroyes nodesif it hit them.
|
||||||
|
-- if you want to dissable it just set it to false:
|
||||||
|
canons.enable_explosion = true
|
BIN
textures/canons_barrel_copper.png
Normal file
BIN
textures/canons_barrel_copper.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
textures/canons_barrel_iron.png
Normal file
BIN
textures/canons_barrel_iron.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
textures/canons_barrel_mithrill.png
Normal file
BIN
textures/canons_barrel_mithrill.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
textures/canons_bucket_salt.png
Normal file
BIN
textures/canons_bucket_salt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 372 B |
BIN
textures/canons_salt.png
Normal file
BIN
textures/canons_salt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
textures/canons_salt_alt.png
Normal file
BIN
textures/canons_salt_alt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 504 B |
BIN
textures/schiffskanone.xcf
Normal file
BIN
textures/schiffskanone.xcf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user