mirror of
https://codeberg.org/tenplus1/bonemeal.git
synced 2025-07-23 02:20:21 +02:00
Compare commits
22 Commits
master
...
a5421172d7
Author | SHA1 | Date | |
---|---|---|---|
a5421172d7 | |||
31cf1abfcd | |||
0a9668fff1 | |||
d357709339 | |||
131024ee97 | |||
52a3856f26 | |||
52ada84c58 | |||
a920032dd5 | |||
d534523a1d | |||
acea1713b7 | |||
1a9c67b1e3 | |||
fdc62f06b0 | |||
2658577776 | |||
7c106254d2 | |||
b50f533579 | |||
2c90275687 | |||
93a46c05a6 | |||
afc6d7ef12 | |||
b604ca39da | |||
97f4b11110 | |||
7053e44ea4 | |||
43fd151357 |
31
init.lua
31
init.lua
@ -650,23 +650,24 @@ minetest.register_craft({
|
||||
recipe = {{"bonemeal:bonemeal", "bonemeal:mulch"}}
|
||||
})
|
||||
|
||||
-- add bones to dirt
|
||||
if minetest.registered_items[a.dirt] then
|
||||
|
||||
minetest.override_item(a.dirt, {
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
items = {"bonemeal:bone"},
|
||||
rarity = 40
|
||||
},
|
||||
{
|
||||
items = {a.dirt}
|
||||
}
|
||||
-- NALC: add bones to dirt but without overriding a previous drop definition
|
||||
-- from other mods.
|
||||
local drop = minetest.registered_items["default:dirt"].drop
|
||||
if drop then
|
||||
table.insert(drop.items, 1, {items = {"bonemeal:bone"}, rarity = 30})
|
||||
else
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{
|
||||
items = {"bonemeal:bone"},
|
||||
rarity = 40
|
||||
},
|
||||
{
|
||||
items = {"default:dirt"}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
end
|
||||
|
||||
-- add support for mods
|
||||
|
Reference in New Issue
Block a user