Page 1 of 1

HELP!!!!

PostPosted: Tue May 31, 2016 08:22
by azekill_DIABLO
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.....

Re: HELP!!!!

PostPosted: Tue May 31, 2016 14:48
by pithy
try using minetest.override_item instead of minetest.register_node

with minetest.override_item you only have to specify what you want to change.

in your code you have not specified drawtype.

Re: HELP!!!!

PostPosted: Tue May 31, 2016 15:27
by azekill_DIABLO
ok thx !

Re: HELP!!!!

PostPosted: Tue May 31, 2016 15:30
by azekill_DIABLO
tried this: IT SAYS default:apple DOES NOT EXIST WT*?

Re: HELP!!!!

PostPosted: Tue May 31, 2016 15:35
by Amaz
Have you added default to depends.txt?

Re: HELP!!!!

PostPosted: Tue May 31, 2016 15:49
by azekill_DIABLO
lol no

Re: HELP!!!!

PostPosted: Tue May 31, 2016 16:04
by azekill_DIABLO
solved thanks for your help :) i will not add solved at the topic i may add others questions