Update crafts and doc
|
@ -0,0 +1,30 @@
|
||||||
|
# Musket v1.0.0
|
||||||
|
|
||||||
|
[![download](https://img.shields.io/github/tag/BrunoMine/musket.svg?style=flat-square&label=release)](https://github.com/BrunoMine/musket/archive/master.zip)
|
||||||
|
[![git](https://img.shields.io/badge/git-project-green.svg?style=flat-square)](https://github.com/BrunoMine/musket)
|
||||||
|
[![forum](https://img.shields.io/badge/minetest-mod-green.svg?style=flat-square)](https://forum.minetest.net)
|
||||||
|
[![bower](https://img.shields.io/badge/bower-mod-green.svg?style=flat-square)](https://minetest-bower.herokuapp.com/mods/musket)
|
||||||
|
|
||||||
|
## Descrição
|
||||||
|
Adicionar o mosquete ao Minetest
|
||||||
|
|
||||||
|
## Requisitos
|
||||||
|
* Minetest 0.5.0 ou superior
|
||||||
|
* Mod shooter
|
||||||
|
|
||||||
|
## Licença
|
||||||
|
Veja LICENSE.txt para informações detalhadas da licença LGPL 3.0
|
||||||
|
|
||||||
|
### Autores do código fonte
|
||||||
|
Originalmente por BrunoMine, Bruno Borges <borgesdossantosbruno@gmail.com> (LGPL 3.0)
|
||||||
|
|
||||||
|
### Autores de mídias (texturas, modelos and sons)
|
||||||
|
Todos que não estao listados aqui:
|
||||||
|
BrunoMine, Bruno Borges <borgesdossantosbruno@gmail.com> (CC BY-SA 3.0)
|
||||||
|
|
||||||
|
musket_shot.ogg - fennelliott - CC0
|
||||||
|
- https://freesound.org/people/fennelliott/sounds/347647/
|
||||||
|
|
||||||
|
musket_reload.ogg - nioczkus - CC0
|
||||||
|
- https://freesound.org/people/nioczkus/sounds/396331/
|
||||||
|
|
25
README.md
|
@ -5,23 +5,26 @@
|
||||||
[![forum](https://img.shields.io/badge/minetest-mod-green.svg?style=flat-square)](https://forum.minetest.net)
|
[![forum](https://img.shields.io/badge/minetest-mod-green.svg?style=flat-square)](https://forum.minetest.net)
|
||||||
[![bower](https://img.shields.io/badge/bower-mod-green.svg?style=flat-square)](https://minetest-bower.herokuapp.com/mods/musket)
|
[![bower](https://img.shields.io/badge/bower-mod-green.svg?style=flat-square)](https://minetest-bower.herokuapp.com/mods/musket)
|
||||||
|
|
||||||
## Descrição
|
## Description
|
||||||
Adicionar o mosquete ao Minetest
|
Add Musket for Minetest
|
||||||
|
|
||||||
## Requisitos _(Requirements)_
|
## Depends
|
||||||
* Minetest 0.4.17 ou superior
|
* Minetest 0.5.0 or higher
|
||||||
* Mod intllib (opicional)
|
* Mod shooter
|
||||||
|
|
||||||
## Licença
|
## License
|
||||||
Veja LICENSE.txt para informações detalhadas da licença LGPL 3.0
|
See LICENSE.txt for detailed license information LGPL 3.0
|
||||||
|
|
||||||
### Autores do código fonte
|
### Authors of the source code
|
||||||
Originalmente por BrunoMine, Bruno Borges <borgesdossantosbruno@gmail.com> (LGPL 3.0)
|
Originalmente por BrunoMine, Bruno Borges <borgesdossantosbruno@gmail.com> (LGPL 3.0)
|
||||||
|
|
||||||
### Autores de mídias (texturas, modelos and sons)
|
### Authors of media (textures, models and sounds)
|
||||||
Todos que não estao listados aqui:
|
All that are not listed here:
|
||||||
BrunoMine, Bruno Borges <borgesdossantosbruno@gmail.com> (CC BY-SA 3.0)
|
BrunoMine, Bruno Borges <borgesdossantosbruno@gmail.com> (CC BY-SA 3.0)
|
||||||
|
|
||||||
|
musket_shot.ogg - fennelliott - CC0
|
||||||
|
- https://freesound.org/people/fennelliott/sounds/347647/
|
||||||
|
|
||||||
|
musket_reload.ogg - nioczkus - CC0
|
||||||
|
- https://freesound.org/people/nioczkus/sounds/396331/
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
shooter
|
shooter
|
||||||
|
default
|
||||||
|
|
39
init.lua
|
@ -6,9 +6,6 @@
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|
||||||
-- Global Table
|
|
||||||
musket = {}
|
|
||||||
|
|
||||||
local modpath = minetest.get_modpath("musket")
|
local modpath = minetest.get_modpath("musket")
|
||||||
|
|
||||||
|
@ -26,6 +23,16 @@ minetest.register_craftitem("musket:musket_ammo", {
|
||||||
stack_max = 15,
|
stack_max = 15,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Musket Ammo craft
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "musket:musket_ammo 6",
|
||||||
|
recipe = {
|
||||||
|
{"shooter:gunpowder", "", "shooter:gunpowder"},
|
||||||
|
{"", "default:steel_ingot", ""},
|
||||||
|
{"shooter:gunpowder", "default:acacia_wood", "shooter:gunpowder"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
-- Register Musket shooter
|
-- Register Musket shooter
|
||||||
shooter.register_weapon("musket:musket", {
|
shooter.register_weapon("musket:musket", {
|
||||||
description = S("Musket (Loaded)"),
|
description = S("Musket (Loaded)"),
|
||||||
|
@ -38,11 +45,21 @@ shooter.register_weapon("musket:musket", {
|
||||||
|
|
||||||
spec = {
|
spec = {
|
||||||
rounds = 1.1,
|
rounds = 1.1,
|
||||||
range = 20,
|
range = 30,
|
||||||
step = 30,
|
step = 30,
|
||||||
tool_caps = {full_punch_interval=1.2, damage_groups={fleshy=6}},
|
tool_caps = {full_punch_interval=1.2, damage_groups={fleshy=4}},
|
||||||
|
groups = {snappy=3, crumbly=3, choppy=3, fleshy=2, oddly_breakable_by_hand=2},
|
||||||
sound = "musket_shot",
|
sound = "musket_shot",
|
||||||
particle = "shooter_bullet.png",
|
bullet_image = "musket_bullet.png",
|
||||||
|
particles = {
|
||||||
|
amount = 8,
|
||||||
|
minsize = 0.25,
|
||||||
|
maxsize = 0.75,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
sounds = {
|
||||||
|
reload = "musket_reload",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -74,3 +91,13 @@ do
|
||||||
minetest.override_item("musket:musket_loaded", {groups=def.groups, on_use=def.on_use})
|
minetest.override_item("musket:musket_loaded", {groups=def.groups, on_use=def.on_use})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Musket craft
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "musket:musket_loaded",
|
||||||
|
recipe = {
|
||||||
|
{"default:steel_ingot", "", ""},
|
||||||
|
{"", "default:steel_ingot", "musket:musket_ammo"},
|
||||||
|
{"", "group:stick", "default:acacia_wood"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 664 B |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 664 B After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 695 B After Width: | Height: | Size: 4.9 KiB |