mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-01-10 02:00:27 +01:00
Remove setting check in README example
This commit is contained in:
parent
1351906574
commit
6de69cdf76
30
README.md
30
README.md
@ -76,20 +76,18 @@ Definition: definition table, containing:
|
|||||||
]]
|
]]
|
||||||
|
|
||||||
-- Example:
|
-- Example:
|
||||||
if get_setting("arrow") then
|
throwing.register_arrow("arrow", {
|
||||||
throwing.register_arrow("arrow", {
|
itemcraft = "default:steel_ingot",
|
||||||
itemcraft = "default:steel_ingot",
|
craft_quantity = 16,
|
||||||
craft_quantity = 16,
|
description = "Arrow",
|
||||||
description = "Arrow",
|
tiles = {"throwing_arrow.png", "throwing_arrow.png", "throwing_arrow_back.png", "throwing_arrow_front.png", "throwing_arrow_2.png", "throwing_arrow.png"},
|
||||||
tiles = {"throwing_arrow.png", "throwing_arrow.png", "throwing_arrow_back.png", "throwing_arrow_front.png", "throwing_arrow_2.png", "throwing_arrow.png"},
|
target = throwing.target_object,
|
||||||
target = throwing.target_object,
|
on_hit_sound = "throwing_arrow",
|
||||||
on_hit_sound = "throwing_arrow",
|
on_hit = function(pos, _, _, object, hitter)
|
||||||
on_hit = function(pos, _, _, object, hitter)
|
object:punch(hitter, 1, {
|
||||||
object:punch(hitter, 1, {
|
full_punch_interval = 1,
|
||||||
full_punch_interval = 1,
|
damage_groups = {fleshy = 3}
|
||||||
damage_groups = {fleshy = 3}
|
})
|
||||||
})
|
end
|
||||||
end
|
})
|
||||||
})
|
|
||||||
end
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user