Petits problèmes plutôt ennuyant
-
Je up , il me semble qu’on pouvais Up après 24heures . . . Excuse moi ^^
-
Si personne ne te répond c’est que personne ne sait donc up tous les jours ça fait lourd….
-
Oui mais si je up pas le sujet disparait et la on sait me répondre puisque Diangle me demande ma classe Generator soit.
-
En dehors du fait que Diangles t’aurais sûrement parler avant si il avait la réponse.
-
Fin soit je ne le ferais plus désolé et je laisserais un sujet non résolu alors.
-
Je suis vraiment désolé
-
Tu peux me donner ton code (scr) par mp ?
-
@‘gagoi’:
Je suis vraiment désolé
Euuuh pourquoi ?, C’est de l’ironie ou ? XD
Et Diangle je ne vois pas ce que tu veut dire la src , le dossier ?
-
Bah non c’est sérieux. Tu auras peut être jamais de solutions XD
-
Ne te fait pas de soucis (j’ai son code).
-
voilà, tous marche (en même temps il ne générer pas son biome xD), tu pourras passer en résolut.
-
Problème bien con au final ^^ , Il me reste encore un soucis je quote pour rappeler :
%(#555555)[[size=xx-small]Hello tout le monde ça fait longtemps que je n’ai plus poster de sujet ]%(#555555)[[size=xx-small] Mais je reviens avec quelques petits problème que j’arrive pas à résoudre par tout les moyens … :/]%(#555555)[[size=xx-small]Voila j’ai créer un arbre et lorsque qu’on le casse avec une hache spécial il drop random , soit rien , soit de la seve , soit de la seve avec un moustique pré-historique , le problème c’est que du coup il ne drop pas mon bloc wood, ]
- %(#000000)[ ]%(#7f0055)[public] %(#7f0055)[boolean]%(#000000)[ onBlockDestroyed]%(#666600)[(]%(#000000)[ItemStack]%(#000000)[ stack]%(#666600)[,] %(#000000)[World]%(#000000)[ world]%(#666600)[,] %(#000000)[Block]%(#000000)[ block]%(#666600)[,] %(#7f0055)[int]%(#000000)[ x]%(#666600)[,] %(#7f0055)[int]%(#000000)[ y]%(#666600)[,] %(#7f0055)[int]%(#000000)[ z]%(#666600)[,] %(#000000)[EntityLivingBase]%(#000000)[ living]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[if] %(#666600)[(]%(#000000)[world]%(#666600)[.]%(#000000)[getBlock]%(#666600)[(]%(#000000)[x]%(#666600)[,]%(#000000)[ y]%(#666600)[,]%(#000000)[ z]%(#666600)[)] %(#666600)[==] %(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[BlockTronc]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#000000)[System]%(#666600)[.]%(#7f0055)[out]%(#666600)[.]%(#000000)[println]%(#666600)[(]%(#2a00ff)[“je vais drop”]%(#666600)[);]
- %(#000000)[ world]%(#666600)[.]%(#000000)[setBlockToAir]%(#666600)[(]%(#000000)[x]%(#666600)[,]%(#000000)[ y]%(#666600)[,]%(#000000)[ z]%(#666600)[);]
- %(#000000)[ ]%(#7f0055)[if] %(#666600)[((]%(#000000)[living ]%(#7f0055)[instanceof] %(#000000)[EntityPlayer]%(#666600)[))]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#000000)[EntityPlayer]%(#000000)[ player ]%(#666600)[=] %(#666600)[(]%(#000000)[EntityPlayer]%(#666600)[)]%(#000000)[living]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[int]%(#000000)[ randInt ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextInt]%(#666600)[(]%(#646464)[11]%(#666600)[);]
- %(#000000)[ ]%(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[==] %(#646464)[0]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[float]%(#000000)[ f ]%(#666600)[=] %(#646464)[0.7F]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d0 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d1 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d2 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#000000)[EntityItem]%(#000000)[ entityitem ]%(#666600)[=] %(#7f0055)[new] %(#000000)[EntityItem]%(#666600)[(]%(#000000)[world]%(#666600)[,]%(#000000)[ x ]%(#666600)[+]%(#000000)[ d0]%(#666600)[,]%(#000000)[ y ]%(#666600)[+]%(#000000)[ d1]%(#666600)[,]%(#000000)[ z ]%(#666600)[+]%(#000000)[ d2]%(#666600)[,] %(#7f0055)[new] %(#000000)[ItemStack]%(#666600)[(]%(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[itemSeve]%(#666600)[,] %(#646464)[1]%(#666600)[));]
- %(#000000)[ entityitem]%(#666600)[.]%(#000000)[delayBeforeCanPickup ]%(#666600)[=] %(#646464)[10]%(#666600)[;]
- %(#000000)[ world]%(#666600)[.]%(#000000)[spawnEntityInWorld]%(#666600)[(]%(#000000)[entityitem]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[else] %(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[==] %(#646464)[1]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[float]%(#000000)[ f ]%(#666600)[=] %(#646464)[0.7F]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d0 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d1 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d2 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#000000)[EntityItem]%(#000000)[ entityitem ]%(#666600)[=] %(#7f0055)[new] %(#000000)[EntityItem]%(#666600)[(]%(#000000)[world]%(#666600)[,]%(#000000)[ x ]%(#666600)[+]%(#000000)[ d0]%(#666600)[,]%(#000000)[ y ]%(#666600)[+]%(#000000)[ d1]%(#666600)[,]%(#000000)[ z ]%(#666600)[+]%(#000000)[ d2]%(#666600)[,] %(#7f0055)[new] %(#000000)[ItemStack]%(#666600)[(]%(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[itemSeve]%(#666600)[,] %(#646464)[1]%(#666600)[));]
- %(#000000)[ entityitem]%(#666600)[.]%(#000000)[delayBeforeCanPickup ]%(#666600)[=] %(#646464)[10]%(#666600)[;]
- %(#000000)[ world]%(#666600)[.]%(#000000)[spawnEntityInWorld]%(#666600)[(]%(#000000)[entityitem]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[else] %(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[==] %(#646464)[2]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[float]%(#000000)[ f ]%(#666600)[=] %(#646464)[0.7F]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d0 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d1 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d2 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#000000)[EntityItem]%(#000000)[ entityitem ]%(#666600)[=] %(#7f0055)[new] %(#000000)[EntityItem]%(#666600)[(]%(#000000)[world]%(#666600)[,]%(#000000)[ x ]%(#666600)[+]%(#000000)[ d0]%(#666600)[,]%(#000000)[ y ]%(#666600)[+]%(#000000)[ d1]%(#666600)[,]%(#000000)[ z ]%(#666600)[+]%(#000000)[ d2]%(#666600)[,] %(#7f0055)[new] %(#000000)[ItemStack]%(#666600)[(]%(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[itemSevewithmosquito]%(#666600)[,] %(#646464)[1]%(#666600)[));]
- %(#000000)[ entityitem]%(#666600)[.]%(#000000)[delayBeforeCanPickup ]%(#666600)[=] %(#646464)[10]%(#666600)[;]
- %(#000000)[ world]%(#666600)[.]%(#000000)[spawnEntityInWorld]%(#666600)[(]%(#000000)[entityitem]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[else] %(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[==] %(#646464)[3]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[float]%(#000000)[ f ]%(#666600)[=] %(#646464)[0.7F]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d0 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d1 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d2 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#000000)[EntityItem]%(#000000)[ entityitem ]%(#666600)[=] %(#7f0055)[new] %(#000000)[EntityItem]%(#666600)[(]%(#000000)[world]%(#666600)[,]%(#000000)[ x ]%(#666600)[+]%(#000000)[ d0]%(#666600)[,]%(#000000)[ y ]%(#666600)[+]%(#000000)[ d1]%(#666600)[,]%(#000000)[ z ]%(#666600)[+]%(#000000)[ d2]%(#666600)[,] %(#7f0055)[new] %(#000000)[ItemStack]%(#666600)[(]%(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[itemSeve]%(#666600)[,] %(#646464)[1]%(#666600)[));]
- %(#000000)[ entityitem]%(#666600)[.]%(#000000)[delayBeforeCanPickup ]%(#666600)[=] %(#646464)[10]%(#666600)[;]
- %(#000000)[ world]%(#666600)[.]%(#000000)[spawnEntityInWorld]%(#666600)[(]%(#000000)[entityitem]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[else] %(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[!=] %(#646464)[4]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[!=] %(#646464)[5]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[!=] %(#646464)[6]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[!=] %(#646464)[7]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[==] %(#646464)[8]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[float]%(#000000)[ f ]%(#666600)[=] %(#646464)[0.7F]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d0 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d1 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d2 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#000000)[EntityItem]%(#000000)[ entityitem ]%(#666600)[=] %(#7f0055)[new] %(#000000)[EntityItem]%(#666600)[(]%(#000000)[world]%(#666600)[,]%(#000000)[ x ]%(#666600)[+]%(#000000)[ d0]%(#666600)[,]%(#000000)[ y ]%(#666600)[+]%(#000000)[ d1]%(#666600)[,]%(#000000)[ z ]%(#666600)[+]%(#000000)[ d2]%(#666600)[,] %(#7f0055)[new] %(#000000)[ItemStack]%(#666600)[(]%(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[itemSeve]%(#666600)[,] %(#646464)[1]%(#666600)[));]
- %(#000000)[ entityitem]%(#666600)[.]%(#000000)[delayBeforeCanPickup ]%(#666600)[=] %(#646464)[10]%(#666600)[;]
- %(#000000)[ world]%(#666600)[.]%(#000000)[spawnEntityInWorld]%(#666600)[(]%(#000000)[entityitem]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[else] %(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[==] %(#646464)[9]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[float]%(#000000)[ f ]%(#666600)[=] %(#646464)[0.7F]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d0 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d1 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d2 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#000000)[EntityItem]%(#000000)[ entityitem ]%(#666600)[=] %(#7f0055)[new] %(#000000)[EntityItem]%(#666600)[(]%(#000000)[world]%(#666600)[,]%(#000000)[ x ]%(#666600)[+]%(#000000)[ d0]%(#666600)[,]%(#000000)[ y ]%(#666600)[+]%(#000000)[ d1]%(#666600)[,]%(#000000)[ z ]%(#666600)[+]%(#000000)[ d2]%(#666600)[,] %(#7f0055)[new] %(#000000)[ItemStack]%(#666600)[(]%(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[itemSeve]%(#666600)[,] %(#646464)[1]%(#666600)[));]
- %(#000000)[ entityitem]%(#666600)[.]%(#000000)[delayBeforeCanPickup ]%(#666600)[=] %(#646464)[10]%(#666600)[;]
- %(#000000)[ world]%(#666600)[.]%(#000000)[spawnEntityInWorld]%(#666600)[(]%(#000000)[entityitem]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[else] %(#7f0055)[if] %(#666600)[(]%(#000000)[randInt ]%(#666600)[==] %(#646464)[10]%(#666600)[)]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#7f0055)[float]%(#000000)[ f ]%(#666600)[=] %(#646464)[0.7F]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d0 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d1 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#7f0055)[double]%(#000000)[ d2 ]%(#666600)[=]%(#000000)[ world]%(#666600)[.]%(#000000)[rand]%(#666600)[.]%(#000000)[nextFloat]%(#666600)[()] %(#666600)
- %(#000000)[ f ]%(#666600)[+] %(#666600)[(]%(#646464)[1.0F] %(#666600)[-]%(#000000)[ f]%(#666600)[)] %(#666600)
- %(#646464)[0.5D]%(#666600)[;]
- %(#000000)[ ]%(#000000)[EntityItem]%(#000000)[ entityitem ]%(#666600)[=] %(#7f0055)[new] %(#000000)[EntityItem]%(#666600)[(]%(#000000)[world]%(#666600)[,]%(#000000)[ x ]%(#666600)[+]%(#000000)[ d0]%(#666600)[,]%(#000000)[ y ]%(#666600)[+]%(#000000)[ d1]%(#666600)[,]%(#000000)[ z ]%(#666600)[+]%(#000000)[ d2]%(#666600)[,] %(#7f0055)[new] %(#000000)[ItemStack]%(#666600)[(]%(#000000)[ModMinecraft]%(#666600)[.]%(#000000)[itemSeve]%(#666600)[,] %(#646464)[1]%(#666600)[));]
- %(#000000)[ entityitem]%(#666600)[.]%(#000000)[delayBeforeCanPickup ]%(#666600)[=] %(#646464)[10]%(#666600)[;]
- %(#000000)[ world]%(#666600)[.]%(#000000)[spawnEntityInWorld]%(#666600)[(]%(#000000)[entityitem]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[else]
- %(#000000)[ ]%(#666600)[{]
- %(#000000)[ ]%(#000000)[System]%(#666600)[.]%(#7f0055)[out]%(#666600)[.]%(#000000)[println]%(#666600)[(]%(#2a00ff)["le bloc correspond pas, je drop rien "] %(#666600)[+]%(#000000)[ world]%(#666600)[.]%(#000000)[getBlock]%(#666600)[(]%(#000000)[x]%(#666600)[,]%(#000000)[ y]%(#666600)[,]%(#000000)[ z]%(#666600)[).]%(#000000)[getUnlocalizedName]%(#666600)[());]
- %(#000000)[ ]%(#666600)[}]
- %(#000000)[ ]%(#7f0055)[return] %(#7f0055)[super]%(#666600)[.]%(#000000)[onBlockDestroyed]%(#666600)[(]%(#000000)[stack]%(#666600)[,]%(#000000)[ world]%(#666600)[,]%(#000000)[ block]%(#666600)[,]%(#000000)[ x]%(#666600)[,]%(#000000)[ y]%(#666600)[,]%(#000000)[ z]%(#666600)[,]%(#000000)[ living]%(#666600)[);]
- %(#000000)[ ]%(#666600)[}]
%(#555555)[[size=xx-small]Voici le code , je ne sais pas comment faire j’ai essayer d’ajouter dans la classe du block tronc un ligne pour qu’il drop justement à chaque fois le bloc avec la seve mais impossible :/]
%(#555555)[[size=xx-small]De plus j’ai créer mon propre WorldType mais j’aimerais que mes nouveaux arbres créer spawn dans mon biome , le problème c’est que quand j’essaye de mettre mon biome dans cette ligne de code :]
- %(#7f0055)[if]%(#666600)[(]%(#000000)[world]%(#666600)[.]%(#000000)[getBiomeGenForCoords]%(#666600)[(]%(#000000)[x]%(#666600)[,]%(#000000)[ z]%(#666600)[).]%(#000000)[equals]%(#666600)[(]%(#000000)[BiomeGenBase]%(#666600)[.]%(#3f7f5f)[//Votre biome.))]
- %(#666600)[{]
- %(#666600)[}]
- %(#000000)[ ]
%(#555555)[[size=xx-small]Mais mon biome n’est pas trouvé et si j’essaye autre chose sa ne marche pas… /=]
%(#555555)[[size=xx-small]Voila voila , merci à ceux qui m’aiderons ]
%(#555555)[[size=xx-small]( Désoler si les questions on déjà été posé j’ai regardé mais je n’ai pas trouvé )]
Il me reste le soucis de faire drop a chaque fois qu’on coupe le bois , il drop le bloc bois mais aussi par random il doit dropé soit de la seve , rien ou seve avec moustique.
-
bon je vais aussi regarder ça :p.
-
@‘Legrandfifou’:
Hello tout le monde ça fait longtemps que je n’ai plus poster de sujet Mais je reviens avec quelques petits problème que j’arrive pas à résoudre par tout les moyens …
Voila j’ai créer un arbre et lorsque qu’on le casse avec une hache spécial il drop random , soit rien , soit de la seve , soit de la seve avec un moustique pré-historique , le problème c’est que du coup il ne drop pas mon bloc wood,
public boolean onBlockDestroyed(ItemStack stack, World world, Block block, int x, int y, int z, EntityLivingBase living) { if (world.getBlock(x, y, z) == ModMinecraft.BlockTronc) { System.out.println("je vais drop"); world.setBlockToAir(x, y, z); if ((living instanceof EntityPlayer)) { EntityPlayer player = (EntityPlayer)living; int randInt = world.rand.nextInt(11); if (randInt == 0) { float f = 0.7F; double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d2 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, x + d0, y + d1, z + d2, new ItemStack(ModMinecraft.itemSeve, 1)); entityitem.delayBeforeCanPickup = 10; world.spawnEntityInWorld(entityitem); } else if (randInt == 1) { float f = 0.7F; double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d2 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, x + d0, y + d1, z + d2, new ItemStack(ModMinecraft.itemSeve, 1)); entityitem.delayBeforeCanPickup = 10; world.spawnEntityInWorld(entityitem); } else if (randInt == 2) { float f = 0.7F; double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d2 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, x + d0, y + d1, z + d2, new ItemStack(ModMinecraft.itemSevewithmosquito, 1)); entityitem.delayBeforeCanPickup = 10; world.spawnEntityInWorld(entityitem); } else if (randInt == 3) { float f = 0.7F; double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d2 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, x + d0, y + d1, z + d2, new ItemStack(ModMinecraft.itemSeve, 1)); entityitem.delayBeforeCanPickup = 10; world.spawnEntityInWorld(entityitem); } else if (randInt != 4) { if (randInt != 5) { if (randInt != 6) { if (randInt != 7) { if (randInt == 8) { float f = 0.7F; double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d2 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, x + d0, y + d1, z + d2, new ItemStack(ModMinecraft.itemSeve, 1)); entityitem.delayBeforeCanPickup = 10; world.spawnEntityInWorld(entityitem); } else if (randInt == 9) { float f = 0.7F; double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d2 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, x + d0, y + d1, z + d2, new ItemStack(ModMinecraft.itemSeve, 1)); entityitem.delayBeforeCanPickup = 10; world.spawnEntityInWorld(entityitem); } else if (randInt == 10) { float f = 0.7F; double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d1 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; double d2 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, x + d0, y + d1, z + d2, new ItemStack(ModMinecraft.itemSeve, 1)); entityitem.delayBeforeCanPickup = 10; world.spawnEntityInWorld(entityitem); } } } } } } } else { System.out.println("le bloc correspond pas, je drop rien " + world.getBlock(x, y, z).getUnlocalizedName()); } return super.onBlockDestroyed(stack, world, block, x, y, z, living); }
Voici le code , je ne sais pas comment faire j’ai essayer d’ajouter dans la classe du block tronc un ligne pour qu’il drop justement à chaque fois le bloc avec la seve mais impossible
De plus j’ai créer mon propre WorldType mais j’aimerais que mes nouveaux arbres créer spawn dans mon biome , le problème c’est que quand j’essaye de mettre mon biome dans cette ligne de code :
%(#7f0055)[**if**]%(#666600)[(]%(#000000)[world]%(#666600)[.]%(#000000)[getBiomeGenForCoords]%(#666600)[(]%(#000000)[x]%(#666600)[,]%(#000000)[ z]%(#666600)[).]%(#000000)[equals]%(#666600)[(]%(#000000)[BiomeGenBase]%(#666600)[.]%(#3f7f5f)[//Votre biome.))] %(#666600)[{] %(#666600)[}]
Mais mon biome n’est pas trouvé et si j’essaye autre chose sa ne marche pas… /=
Voila voila , merci à ceux qui m’aiderons
( Désoler si les questions on déjà été posé j’ai regardé mais je n’ai pas trouvé )
Problème bien con au final ^^ , Il me reste encore un soucis je quote pour rappeler :
Il me reste le soucis de faire drop a chaque fois qu’on coupe le bois , il drop le bloc bois mais aussi par random il doit dropé soit de la seve , rien ou seve avec moustique.
-
D’accord et désoler pour le double message ^^ Je viens de le supprimer