Update crafts and doc

master
BrunoMine 2019-03-25 00:57:54 -03:00
parent dabeccdf93
commit c4aa7d450a
20 changed files with 79 additions and 18 deletions

30
README-pt_BR.md Normal file
View File

@ -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/

View File

@ -5,23 +5,26 @@
[![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
## Description
Add Musket for Minetest
## Requisitos _(Requirements)_
* Minetest 0.4.17 ou superior
* Mod intllib (opicional)
## Depends
* Minetest 0.5.0 or higher
* Mod shooter
## Licença
Veja LICENSE.txt para informações detalhadas da licença LGPL 3.0
## License
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)
### Autores de mídias (texturas, modelos and sons)
Todos que não estao listados aqui:
### Authors of media (textures, models and sounds)
All that are not listed here:
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/

View File

@ -1,2 +1,2 @@
shooter
default

View File

@ -6,9 +6,6 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
]]
-- Global Table
musket = {}
local modpath = minetest.get_modpath("musket")
@ -26,6 +23,16 @@ minetest.register_craftitem("musket:musket_ammo", {
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
shooter.register_weapon("musket:musket", {
description = S("Musket (Loaded)"),
@ -38,11 +45,21 @@ shooter.register_weapon("musket:musket", {
spec = {
rounds = 1.1,
range = 20,
range = 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",
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})
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"}
}
})

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = musket

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
sounds/musket_reload.ogg Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 711 B

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
textures/musket_bullet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 695 B

After

Width:  |  Height:  |  Size: 4.9 KiB