Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node(":default:apple", {
description = "Apple",
tiles = {"default_leaves.png^default_apple.png"},
is_ground_content = false,
groups = {snappy=3, leafdecay=2},
drop = {
max_items = 3,
items = {
{
-- player will get sapling with 1/20 chance
items = {'default:sapling'},
rarity = 20,
},
{
items = {'default:apple'},
}
}
},
})
this code is suposed to work perfectly! it doesn't change anything.....