Résolu Liquide
-
Salut,
Je suis entreint de créer un liquide pour mon serveur sauf que votre tutorial est en 1.6 j’ai donc essayé de le modifié pour le rendre compatible mais sa crash je vous montre se que j’ai mis.
public static Fluid fluidUltraWater; public static Block blockfluidUltraWater; public static Item bucketfluidUltraWater; fluidUltraWater = new Fluid("ultrawater").setDensity(4000).setViscosity(500).setTemperature(286).setLuminosity(10).setUnlocalizedName("ultrawater"); FluidRegistry.registerFluid(fluidUltraWater); fluidUltraWater = FluidRegistry.getFluid("ultrawater"); bucketfluidUltraWater = new bucketfluidUltraWater(blockfluidUltraWater).setUnlocalizedName("bucketfluidUltraWater").setTextureName("ultra:bucketfluidUltraWater").setContainerItem(Items.bucket); GameRegistry.registerItem(bucketfluidUltraWater, "bucketfluidUltraWater", "ultra"); FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluidStack("ultrawater", FluidContainerRegistry.BUCKET_VOLUME), new ItemStack(bucketfluidUltraWater), FluidContainerRegistry.EMPTY_BUCKET);
package fr.darkvince.ultra; import net.minecraft.block.Block; import net.minecraft.item.ItemBucket; public class bucketfluidUltraWater extends ItemBucket{ public bucketfluidUltraWater(Block p_i45331_1_) { super(p_i45331_1_); // TODO Auto-generated constructor stub } }
package fr.darkvince.ultra; import javax.swing.Icon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fluids.BlockFluidClassic; import net.minecraftforge.fluids.Fluid; public class blockfluidUltraWater extends BlockFluidClassic { @SideOnly(Side.CLIENT) protected IIcon stillIcon; @SideOnly(Side.CLIENT) protected IIcon flowingIcon; public blockfluidUltraWater(Fluid fluid, Material material) { super(fluid, material); setCreativeTab(CreativeTabs.tabMisc); } @Override public IIcon getIcon(int side, int meta) { return (side == 0 || side == 1)? stillIcon : flowingIcon; } @SideOnly(Side.CLIENT) @Override public void registerBlockIcons(IIconRegister register) { stillIcon = register.registerIcon("modid:fluidStill"); flowingIcon = register.registerIcon("modid:fluidFlowing"); } @Override public boolean canDisplace(IBlockAccess world, int x, int y, int z) { if (world.getBlock(x, y, z).getMaterial().isLiquid()) return false; return super.canDisplace(world, x, y, z); } @Override public boolean displaceIfPossible(World world, int x, int y, int z) { if (world.getBlock(x, y, z).getMaterial().isLiquid()) return false; return super.displaceIfPossible(world, x, y, z); } }
Voilà mais class en espérent avoir de l’aide sur se coup
-
Le rapport de crash ?
Et pourquoi la balise résolu ?!?!? -
Exelante question.
–-- Minecraft Crash Report ---- // Oops. Time: 01/03/16 22:55 Description: Unexpected error java.lang.NullPointerException: Unexpected error at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) at net.minecraft.world.World.setBlock(World.java:519) at net.minecraft.item.ItemBucket.tryPlaceContainedLiquid(ItemBucket.java:210) at net.minecraft.item.ItemBucket.onItemRightClick(ItemBucket.java:142) at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:164) at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:430) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1557) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2044) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) at net.minecraft.client.Minecraft.run(Minecraft.java:962) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86) at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653) at net.minecraft.world.World.setBlock(World.java:519) at net.minecraft.item.ItemBucket.tryPlaceContainedLiquid(ItemBucket.java:210) at net.minecraft.item.ItemBucket.onItemRightClick(ItemBucket.java:142) at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:164) at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:430) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1557) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player635'/1024, l='MpServer', x=-252,50, y=102,62, z=259,50]] Chunk stats: MultiplayerChunkCache: 526, 526 Level seed: 0 Level generator: ID 00 - default, ver 1\. Features enabled: false Level generator options: Level spawn location: World: (-252,64,256), Chunk: (at 4,4,0 in -16,16; contains blocks -256,0,256 to -241,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Level time: 2585 game time, 2585 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 185 total; [EntityItem['item.tile.sapling.jungle'/256, l='MpServer', x=-309,09, y=65,13, z=293,88], EntityClientPlayerMP['Player635'/1024, l='MpServer', x=-252,50, y=102,62, z=259,50], EntityChicken['Chicken'/257, l='MpServer', x=-311,47, y=63,00, z=306,56], EntityChicken['Chicken'/259, l='MpServer', x=-316,44, y=74,00, z=325,63], EntityItem['item.tile.sapling.oak'/1285, l='MpServer', x=-222,34, y=68,13, z=198,94], EntityChicken['Chicken'/526, l='MpServer', x=-217,47, y=74,00, z=186,41], EntityZombie['Zombie'/528, l='MpServer', x=-214,50, y=30,00, z=199,50], EntityChicken['Chicken'/529, l='MpServer', x=-217,63, y=70,00, z=194,91], EntityChicken['Chicken'/530, l='MpServer', x=-220,50, y=69,00, z=196,50], EntityItem['item.tile.sapling.oak'/532, l='MpServer', x=-222,22, y=80,13, z=202,81], EntityItem['item.tile.sapling.oak'/533, l='MpServer', x=-212,41, y=83,13, z=236,22], EntityChicken['Chicken'/534, l='MpServer', x=-224,56, y=97,00, z=257,76], EntitySpider['Spider'/535, l='MpServer', x=-219,81, y=19,00, z=273,50], EntityChicken['Chicken'/536, l='MpServer', x=-211,31, y=82,00, z=273,47], EntityBat['Bat'/537, l='MpServer', x=-222,91, y=21,86, z=299,75], EntityItem['item.tile.sapling.oak'/538, l='MpServer', x=-223,13, y=76,13, z=295,53], EntityItem['item.tile.sapling.oak'/539, l='MpServer', x=-220,75, y=80,13, z=302,34], EntitySkeleton['Skeleton'/540, l='MpServer', x=-213,50, y=15,00, z=319,91], EntityItem['item.tile.sapling.oak'/284, l='MpServer', x=-291,88, y=85,13, z=219,84], EntityBat['Bat'/541, l='MpServer', x=-195,63, y=17,51, z=317,55], EntityItem['item.tile.sapling.oak'/285, l='MpServer', x=-289,88, y=87,13, z=215,06], EntityCreeper['Creeper'/542, l='MpServer', x=-215,59, y=16,00, z=314,69], EntityItem['item.tile.sapling.oak'/286, l='MpServer', x=-288,63, y=84,13, z=217,13], EntitySpider['Spider'/543, l='MpServer', x=-221,00, y=16,00, z=310,72], EntityItem['item.tile.sapling.oak'/287, l='MpServer', x=-289,41, y=83,13, z=210,88], EntityZombie['Zombie'/544, l='MpServer', x=-220,03, y=17,00, z=317,47], EntityItem['item.tile.sapling.oak'/288, l='MpServer', x=-291,88, y=85,13, z=209,25], EntityZombie['Zombie'/545, l='MpServer', x=-215,59, y=17,00, z=308,91], EntityItem['item.item.apple'/289, l='MpServer', x=-289,22, y=84,13, z=218,75], EntitySkeleton['Skeleton'/546, l='MpServer', x=-213,47, y=16,00, z=312,41], EntityCreeper['Creeper'/290, l='MpServer', x=-297,71, y=17,09, z=269,47], EntityBat['Bat'/547, l='MpServer', x=-214,59, y=19,10, z=312,06], EntityItem['item.item.apple'/291, l='MpServer', x=-300,19, y=77,13, z=268,13], EntitySkeleton['Skeleton'/548, l='MpServer', x=-216,72, y=16,00, z=308,72], EntityItem['item.tile.sapling.oak'/292, l='MpServer', x=-296,13, y=75,13, z=270,88], EntitySkeleton['Skeleton'/549, l='MpServer', x=-221,09, y=16,00, z=313,47], EntityItem['item.tile.sapling.oak'/293, l='MpServer', x=-301,09, y=76,13, z=265,19], EntitySkeleton['Skeleton'/550, l='MpServer', x=-210,50, y=39,00, z=311,88], EntityItem['item.tile.sapling.oak'/294, l='MpServer', x=-299,13, y=77,13, z=267,13], EntityCreeper['Creeper'/551, l='MpServer', x=-215,50, y=42,00, z=311,50], EntityItem['item.tile.sapling.oak'/295, l='MpServer', x=-303,78, y=74,13, z=286,44], EntityItem['item.item.apple'/552, l='MpServer', x=-220,47, y=78,13, z=304,13], EntityItem['item.tile.sapling.oak'/296, l='MpServer', x=-302,13, y=73,13, z=287,94], EntityItem['item.tile.sapling.oak'/553, l='MpServer', x=-219,69, y=78,13, z=316,69], EntityChicken['Chicken'/297, l='MpServer', x=-303,50, y=63,00, z=315,50], EntityChicken['Chicken'/298, l='MpServer', x=-300,50, y=63,00, z=312,50], EntitySkeleton['Skeleton'/554, l='MpServer', x=-217,50, y=28,00, z=333,50], EntityChicken['Chicken'/299, l='MpServer', x=-295,34, y=70,00, z=313,53], EntityItem['item.tile.sapling.oak'/555, l='MpServer', x=-222,09, y=72,13, z=323,41], EntitySkeleton['Skeleton'/593, l='MpServer', x=-193,13, y=30,00, z=193,63], EntityItem['item.tile.sapling.oak'/338, l='MpServer', x=-282,31, y=73,13, z=204,72], EntityChicken['Chicken'/594, l='MpServer', x=-201,50, y=70,00, z=207,50], EntityItem['item.tile.sapling.oak'/339, l='MpServer', x=-284,13, y=74,13, z=203,13], EntityChicken['Chicken'/595, l='MpServer', x=-199,19, y=71,00, z=197,66], EntityItem['item.tile.sapling.oak'/340, l='MpServer', x=-277,59, y=82,13, z=279,19], EntityChicken['Chicken'/596, l='MpServer', x=-197,56, y=67,00, z=201,53], EntityItem['item.tile.sapling.oak'/341, l='MpServer', x=-279,19, y=81,13, z=280,13], EntityItem['item.tile.sapling.oak'/597, l='MpServer', x=-192,25, y=73,13, z=197,84], EntityItem['item.tile.sapling.oak'/342, l='MpServer', x=-280,13, y=83,13, z=277,13], EntityChicken['Chicken'/598, l='MpServer', x=-200,50, y=70,00, z=208,50], EntityItem['item.tile.sapling.oak'/343, l='MpServer', x=-277,72, y=81,13, z=280,13], EntityChicken['Chicken'/599, l='MpServer', x=-199,50, y=76,00, z=231,50], EntityItem['item.item.apple'/344, l='MpServer', x=-277,81, y=81,13, z=280,34], EntityChicken['Chicken'/600, l='MpServer', x=-194,66, y=75,00, z=231,53], EntityItem['item.tile.sapling.oak'/345, l='MpServer', x=-275,28, y=72,13, z=302,03], EntityChicken['Chicken'/601, l='MpServer', x=-196,81, y=74,00, z=229,50], EntityItem['item.tile.sapling.oak'/602, l='MpServer', x=-197,34, y=78,13, z=239,88], EntityPig['Pig'/346, l='MpServer', x=-275,47, y=63,00, z=317,50], EntityChicken['Chicken'/603, l='MpServer', x=-198,53, y=80,00, z=258,56], EntityPig['Pig'/347, l='MpServer', x=-285,97, y=63,00, z=310,03], EntityChicken['Chicken'/604, l='MpServer', x=-202,16, y=84,00, z=266,47], EntityChicken['Chicken'/348, l='MpServer', x=-273,50, y=64,00, z=317,50], EntityZombie['Zombie'/605, l='MpServer', x=-192,50, y=21,00, z=282,91], EntityChicken['Chicken'/349, l='MpServer', x=-273,50, y=64,00, z=318,50], EntityChicken['Chicken'/606, l='MpServer', x=-205,97, y=86,00, z=272,59], EntityItem['item.tile.sapling.oak'/350, l='MpServer', x=-274,69, y=71,13, z=310,38], EntityBat['Bat'/607, l='MpServer', x=-192,43, y=20,53, z=283,38], EntityChicken['Chicken'/351, l='MpServer', x=-275,50, y=64,00, z=322,50], EntitySkeleton['Skeleton'/608, l='MpServer', x=-193,50, y=18,00, z=292,50], EntityChicken['Chicken'/352, l='MpServer', x=-276,50, y=64,00, z=321,50], EntityCreeper['Creeper'/609, l='MpServer', x=-197,41, y=19,00, z=300,00], EntityChicken['Chicken'/353, l='MpServer', x=-272,31, y=66,00, z=322,44], EntityZombie['Zombie'/610, l='MpServer', x=-192,47, y=18,00, z=293,06], EntityChicken['Chicken'/354, l='MpServer', x=-274,50, y=64,00, z=321,50], EntityItem['item.tile.sapling.oak'/611, l='MpServer', x=-202,78, y=73,13, z=296,28], EntityPig['Pig'/355, l='MpServer', x=-278,50, y=64,00, z=320,50], EntityItem['item.tile.sapling.oak'/612, l='MpServer', x=-198,78, y=76,13, z=300,56], EntityChicken['Chicken'/356, l='MpServer', x=-278,53, y=65,00, z=322,69], EntityItem['item.tile.sapling.oak'/613, l='MpServer', x=-193,34, y=75,13, z=296,13], EntityItem['item.tile.sapling.oak'/614, l='MpServer', x=-196,13, y=68,13, z=296,81], EntityItem['item.tile.sapling.oak'/615, l='MpServer', x=-196,13, y=76,13, z=301,22], EntityItem['item.tile.sapling.oak'/616, l='MpServer', x=-201,44, y=77,13, z=303,88], EntityBat['Bat'/617, l='MpServer', x=-189,24, y=24,18, z=316,27], EntityItem['item.item.apple'/618, l='MpServer', x=-207,25, y=74,13, z=309,13], EntityItem['item.tile.sapling.oak'/619, l='MpServer', x=-200,56, y=77,13, z=304,81], EntityItem['item.tile.sapling.oak'/620, l='MpServer', x=-201,84, y=79,13, z=307,88], EntityItem['item.tile.sapling.oak'/621, l='MpServer', x=-204,88, y=81,13, z=309,81], EntitySpider['Spider'/377, l='MpServer', x=-260,75, y=29,00, z=212,09], EntitySpider['Spider'/378, l='MpServer', x=-259,72, y=29,00, z=210,47], EntityItem['item.tile.sapling.oak'/379, l='MpServer', x=-259,91, y=75,13, z=284,94], EntityItem['item.item.apple'/380, l='MpServer', x=-259,75, y=74,13, z=284,53], EntityItem['item.tile.sapling.oak'/381, l='MpServer', x=-265,78, y=74,13, z=293,09], EntityItem['item.tile.sapling.oak'/382, l='MpServer', x=-270,88, y=73,13, z=304,28], EntityItem['item.tile.sapling.oak'/383, l='MpServer', x=-269,81, y=71,13, z=312,13], EntityChicken['Chicken'/384, l='MpServer', x=-271,50, y=64,00, z=322,50], EntityPig['Pig'/385, l='MpServer', x=-269,53, y=65,00, z=324,66], EntityItem['item.tile.sapling.oak'/1413, l='MpServer', x=-247,84, y=74,13, z=278,78], EntityCreeper['Creeper'/408, l='MpServer', x=-255,50, y=29,00, z=218,50], EntityChicken['Chicken'/409, l='MpServer', x=-243,20, y=89,93, z=246,63], EntitySkeleton['Skeleton'/410, l='MpServer', x=-243,69, y=15,00, z=264,31], EntitySkeleton['Skeleton'/411, l='MpServer', x=-238,13, y=18,00, z=259,50], EntitySkeleton['Skeleton'/412, l='MpServer', x=-254,31, y=26,00, z=275,31], EntitySkeleton['Skeleton'/413, l='MpServer', x=-255,16, y=26,00, z=276,16], EntityItem['item.item.apple'/669, l='MpServer', x=-191,34, y=73,13, z=197,88], EntityChicken['Chicken'/414, l='MpServer', x=-250,59, y=65,00, z=278,63], EntityChicken['Chicken'/670, l='MpServer', x=-199,47, y=72,00, z=224,75], EntityChicken['Chicken'/415, l='MpServer', x=-250,50, y=67,00, z=283,50], EntityChicken['Chicken'/416, l='MpServer', x=-250,50, y=66,00, z=284,50], EntityChicken['Chicken'/417, l='MpServer', x=-249,50, y=68,00, z=287,50], EntityChicken['Chicken'/418, l='MpServer', x=-242,34, y=71,00, z=300,34], EntityBat['Bat'/675, l='MpServer', x=-191,16, y=19,19, z=285,98], EntityCreeper['Creeper'/419, l='MpServer', x=-240,50, y=17,00, z=334,50], EntitySkeleton['Skeleton'/678, l='MpServer', x=-190,31, y=18,00, z=294,69], EntityZombie['Zombie'/679, l='MpServer', x=-189,97, y=19,00, z=291,53], EntityZombie['Zombie'/680, l='MpServer', x=-190,56, y=19,00, z=295,56], EntityItem['item.tile.sapling.oak'/425, l='MpServer', x=-245,13, y=81,13, z=323,25], EntityItem['item.item.apple'/682, l='MpServer', x=-189,59, y=74,13, z=296,16], EntityBat['Bat'/186, l='MpServer', x=-322,49, y=64,09, z=195,38], EntitySkeleton['Skeleton'/188, l='MpServer', x=-321,50, y=51,00, z=222,09], EntityCreeper['Creeper'/193, l='MpServer', x=-320,50, y=17,00, z=282,50], EntityCreeper['Creeper'/194, l='MpServer', x=-321,70, y=12,04, z=289,70], EntitySkeleton['Skeleton'/195, l='MpServer', x=-328,13, y=15,00, z=292,47], EntitySkeleton['Skeleton'/196, l='MpServer', x=-321,06, y=17,00, z=295,69], EntityBat['Bat'/199, l='MpServer', x=-327,97, y=60,49, z=313,38], EntityBat['Bat'/200, l='MpServer', x=-333,35, y=59,22, z=316,95], EntityChicken['Chicken'/201, l='MpServer', x=-326,50, y=70,00, z=330,50], EntityChicken['Chicken'/202, l='MpServer', x=-324,47, y=72,00, z=328,63], EntityItem['item.tile.sapling.oak'/1483, l='MpServer', x=-299,98, y=71,13, z=284,84], EntitySkeleton['Skeleton'/467, l='MpServer', x=-235,50, y=30,00, z=189,50], EntityZombie['Zombie'/468, l='MpServer', x=-233,50, y=30,00, z=189,50], EntityZombie['Zombie'/469, l='MpServer', x=-234,50, y=30,00, z=194,50], EntityZombie['Zombie'/470, l='MpServer', x=-236,06, y=30,00, z=195,47], EntityZombie['Zombie'/471, l='MpServer', x=-238,59, y=30,00, z=192,91], EntityChicken['Chicken'/472, l='MpServer', x=-227,44, y=70,00, z=195,47], EntityItem['item.tile.sapling.oak'/473, l='MpServer', x=-232,31, y=69,13, z=205,88], EntityItem['item.tile.sapling.oak'/474, l='MpServer', x=-233,13, y=78,13, z=209,34], EntityItem['item.tile.sapling.oak'/475, l='MpServer', x=-225,22, y=82,13, z=208,81], EntityChicken['Chicken'/731, l='MpServer', x=-173,53, y=69,00, z=182,53], EntityBat['Bat'/476, l='MpServer', x=-242,77, y=19,72, z=220,94], EntitySkeleton['Skeleton'/732, l='MpServer', x=-175,88, y=30,00, z=192,53], EntityItem['item.item.seeds'/477, l='MpServer', x=-225,44, y=68,13, z=225,13], EntityBat['Bat'/478, l='MpServer', x=-223,75, y=16,00, z=260,75], EntityChicken['Chicken'/479, l='MpServer', x=-227,50, y=89,00, z=269,50], EntityChicken['Chicken'/480, l='MpServer', x=-224,34, y=100,00, z=269,47], EntityZombie['Zombie'/481, l='MpServer', x=-225,50, y=22,00, z=299,50], EntityChicken['Chicken'/482, l='MpServer', x=-236,50, y=71,00, z=297,50], EntityZombie['Zombie'/738, l='MpServer', x=-183,07, y=18,00, z=274,26], EntityItem['item.item.apple'/483, l='MpServer', x=-236,13, y=72,13, z=300,13], EntitySkeleton['Skeleton'/484, l='MpServer', x=-232,22, y=67,00, z=302,63], EntitySkeleton['Skeleton'/740, l='MpServer', x=-173,50, y=45,00, z=298,50], EntityZombie['Zombie'/485, l='MpServer', x=-234,37, y=67,00, z=305,91], EntitySkeleton['Skeleton'/486, l='MpServer', x=-225,09, y=17,00, z=318,50], EntityChicken['Chicken'/487, l='MpServer', x=-232,84, y=71,00, z=305,84], EntityChicken['Chicken'/488, l='MpServer', x=-230,75, y=76,00, z=307,47], EntityZombie['Zombie'/489, l='MpServer', x=-228,97, y=68,00, z=304,44], EntitySkeleton['Skeleton'/490, l='MpServer', x=-234,93, y=67,00, z=306,70], EntityZombie['Zombie'/491, l='MpServer', x=-229,66, y=19,00, z=329,34], EntityCreeper['Creeper'/492, l='MpServer', x=-239,50, y=17,00, z=333,50], EntitySkeleton['Skeleton'/493, l='MpServer', x=-225,50, y=17,00, z=320,69], EntityItem['item.tile.sapling.oak'/240, l='MpServer', x=-308,13, y=86,13, z=218,41], EntityCreeper['Creeper'/496, l='MpServer', x=-233,44, y=18,00, z=339,91], EntityItem['item.tile.sapling.jungle'/241, l='MpServer', x=-306,38, y=86,13, z=215,13], EntityItem['item.tile.sapling.jungle'/242, l='MpServer', x=-307,88, y=86,13, z=215,88], EntityZombie['Zombie'/244, l='MpServer', x=-313,47, y=53,00, z=224,44], EntityItem['item.item.apple'/1524, l='MpServer', x=-255,17, y=75,13, z=266,88], EntityZombie['Zombie'/245, l='MpServer', x=-311,50, y=55,00, z=234,50], EntityWitch['Witch'/248, l='MpServer', x=-308,50, y=41,00, z=271,50], EntityCreeper['Creeper'/249, l='MpServer', x=-312,91, y=14,00, z=282,34], EntityCreeper['Creeper'/250, l='MpServer', x=-311,50, y=17,00, z=283,50], EntityCreeper['Creeper'/251, l='MpServer', x=-317,50, y=17,00, z=278,50], EntityCreeper['Creeper'/252, l='MpServer', x=-306,00, y=41,00, z=277,59], EntityItem['item.tile.sapling.oak'/253, l='MpServer', x=-312,78, y=71,13, z=280,19], EntityItem['item.item.apple'/254, l='MpServer', x=-305,13, y=73,13, z=284,09], EntityCreeper['Creeper'/255, l='MpServer', x=-315,50, y=35,00, z=288,50], EntityItem['item.tile.sapling.oak'/1535, l='MpServer', x=-220,32, y=80,12, z=301,36]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2566) at net.minecraft.client.Minecraft.run(Minecraft.java:991) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) – System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_73, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 859803224 bytes (819 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) UCHIJAAAA ultra{1.0} [ultra] (bin) GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.15.4248' Renderer: 'Intel(R) HD Graphics' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel(R) HD Graphics GL version 4.3.0 - Build 10.18.15.4248, Intel GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1)
-
Essaye avec ça:
FluidContainerRegistry.registerFluidContainer(fluidUltraWater , new ItemStack(bucketfluidUltraWater), FluidContainerRegistry.EMPTY_BUCKET);
sinon tuto en anglais pour 1.7.2: http://www.minecraftforge.net/wiki/Create_a_Fluid
-
C’est le tuto que j’ai fait avec lui de robin sauf que l’angalis est moi sa fait 2.
J’ai toujours le crash
-
Le bloc est enregistré quelque part ?
-
@‘SCAREX’:
Le bloc est enregistré quelque part ?
J’ai mis tes mais code que j’ai pour l’eau
Edit;
Tu parle de se code ?
if(fluidUltraWater.getBlockID() == -1)
{
blockfluidUltraWater = new blockfluidUltraWater(fluidUltraWaterID, fluidUltraWater, Material.water).setUnlocalizedName(“fluidUltraWater”);
GameRegistry.registerBlock(blockfluidUltraWater, “fluidUltraWater”);
fluidUltraWater.setBlockID(blockfluidUltraWater);
}
else
{
blockfluidUltraWater = Block.blocksList[fluidUltraWater.getBlockID()];
}Car j’arrive pas a le mettre en 1.7.2
-
ça doit faire partir de la nouvelle API, en même temps la 1.7.2 n’est plus mise à jour et il n’y a aucune raison de ne pas passer en 1.7.10
-
https://github.com/FFMT/ModTutoriel/commit/09c080dc1959a79f5cdf5251214454ba88a21e33
Tu as juste a regarder tout ce qui concerne le fluide. -
@‘robin4002’:
https://github.com/FFMT/ModTutoriel/commit/09c080dc1959a79f5cdf5251214454ba88a21e33
Tu as juste a regarder tout ce qui concerne le fluide.Edit:
C’ets bon da marche sauf que je voudrai mettre des dégat quand je vais dans l’eau en question comment faire j’ai essayé de changé la température est sa marche pas faut passez par une autre fonction ?J’ai trouvé sa :
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) { if (this.blockMaterial == Material.lava) { int l = p_149674_5_.nextInt(3); int i1; for (i1 = 0; i1 < l; ++i1) { p_149674_2_ += p_149674_5_.nextInt(3) - 1; ++p_149674_3_; p_149674_4_ += p_149674_5_.nextInt(3) - 1; Block block = p_149674_1_.getBlock(p_149674_2_, p_149674_3_, p_149674_4_); if (block.blockMaterial == Material.air) { if (this.isFlammable(p_149674_1_, p_149674_2_ - 1, p_149674_3_, p_149674_4_) || this.isFlammable(p_149674_1_, p_149674_2_ + 1, p_149674_3_, p_149674_4_) || this.isFlammable(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_ - 1) || this.isFlammable(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_ + 1) || this.isFlammable(p_149674_1_, p_149674_2_, p_149674_3_ - 1, p_149674_4_) || this.isFlammable(p_149674_1_, p_149674_2_, p_149674_3_ + 1, p_149674_4_)) { p_149674_1_.setBlock(p_149674_2_, p_149674_3_, p_149674_4_, Blocks.fire); return; } } else if (block.blockMaterial.blocksMovement()) { return; } } if (l == 0) { i1 = p_149674_2_; int k1 = p_149674_4_; for (int j1 = 0; j1 < 3; ++j1) { p_149674_2_ = i1 + p_149674_5_.nextInt(3) - 1; p_149674_4_ = k1 + p_149674_5_.nextInt(3) - 1; if (p_149674_1_.isAirBlock(p_149674_2_, p_149674_3_ + 1, p_149674_4_) && this.isFlammable(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_)) { p_149674_1_.setBlock(p_149674_2_, p_149674_3_ + 1, p_149674_4_, Blocks.fire); } } } } } /** * Checks to see if the block is flammable. */ private boolean isFlammable(World p_149817_1_, int p_149817_2_, int p_149817_3_, int p_149817_4_) { return p_149817_1_.getBlock(p_149817_2_, p_149817_3_, p_149817_4_).getMaterial().getCanBurn(); }
Est essayé une collision aussi
public void onEntityCollidedWithBlock(World world, int x, int y, int z, EntityPlayer player) { if(player instanceof EntityLivingBase && !world.isRemote) { player.addPotionEffect(new PotionEffect(Potion.damageBoost.id, 20, 0)); } }