
x_j0nnay_x
Members-
Posts
51 -
Joined
-
Last visited
Everything posted by x_j0nnay_x
-
yes, but im not seeing how its saving the enchantments.
-
i've made my own container that has the anvil combined with the furnace. that way it uses the heat level as the xp. so the amount of xp it would have used in the anvil is then multiplied by lets say 150 or so.
-
Hey ive been looking at the anvil code and i want to make it use fuel instead of xp. im not quit figuring out how it saves the data from like a sword with the enchants. any ideas? im probably looking right over top of it.
-
okay i have everything working for the gui block working and i can use the slandered minecraft furnace gui png, but i want to over lay my own gui png. here is the files TileEntityGrinder.class GrinderGui.class Everything else is on my github if you wanna go throw that to see something https://github.com/x-j0nnay-x/Definecraft-1.9.4-Src
-
[1.9.4] setupDevWorkSpace not working [resolved]
x_j0nnay_x replied to x_j0nnay_x's topic in Modder Support
okay thanks, i used Dev in 1.7.10 and it worked. thank you for the help. -
is it just me or is it all accost the board that no one can use setupDevWorkSpace and see the minecraft codes?
-
okay, did not know you wanted the whole armor tick, its in the github link. but here is the latest setup public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack, IBlockState blockState, BlockPos blockPos) { int x = (int) player.posX; int y = (int) player.posY - 1; int z = (int) player.posZ; for(int _x = -3; _x <= 3; _x++) { for(int _z = -3; _z <= 3; _z++) { if(Math.abs(_x) + Math.abs(_z) <= 3) { for (BlockPos pos : BlockPos.getAllInBox(blockPos.down(3).east(3), blockPos.up(3).west(3))) { if (itemStack.getItem() == DefineCraftModItems.HellStoneBoots) { IBlockState state = world.getBlockState(blockPos); if (state.getBlock() == Blocks.WATER && state.getValue(BlockLiquid.LEVEL) == 0 || state.getBlock() == Blocks.FLOWING_WATER && state.getValue(BlockLiquid.LEVEL) == 0) { // world.setBlock(x+_x, y, z+_z, DefineCraftModBlocks.meltingObsidian1,0, 1); //blockState.setBlock(x+_x, y, z+_z, DefineCraftModBlocks.meltingObsidian1); world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.FIRE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); } if (state.getBlock() == Blocks.LAVA && state.getValue(BlockLiquid.LEVEL) == 0 || state.getBlock() == Blocks.FLOWING_LAVA && state.getValue(BlockLiquid.LEVEL) == 0) { // blockState.setBlock(x+_x, y, z+_z, DefineCraftModBlocks.meltingObsidian); world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.FIRE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); } else if (state.getBlock() == Blocks.LAVA && state.getValue(BlockLiquid.LEVEL) >= 1 || state.getBlock() == Blocks.FLOWING_LAVA && state.getValue(BlockLiquid.LEVEL) >= 1) { // blockState.setBlock(x+_x, y, z+_z, DefineCraftModBlocks.meltingObsidian0); world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.FIRE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); } } }//has full armor if (itemStack.getItem() == DefineCraftModItems.HellStoneBoots && itemStack.getItem() == DefineCraftModItems.HellStoneLegs && itemStack.getItem() == DefineCraftModItems.HellStoneChest && itemStack.getItem() == DefineCraftModItems.HellStoneHelmet){ { // if (world.getLightValue (x-1, y+1, z) <7 && block0 != DefineCraftModBlocks.VanishingLight){ // if (world.getBlock(x-1, y+1, z) == Blocks.air){ // world.setBlock(x-1,y+1,z, DefineCraftModBlocks.VanishingLight); world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.STONE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); // } // else // { // world.setBlock(x-1,y+2,z, DefineCraftModBlocks.VanishingLight); world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.STONE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); } } if (player.isBurning()){ player.extinguish(); world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.STONE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); } } // } // } } } //Just Chest if (itemStack.getItem() == (DefineCraftModItems.HellStoneChest)){ player.fallDistance = 0.0F; player.capabilities.allowFlying = true; } //just helme if(itemStack.getItem().getUnlocalizedName() == "HellStoneHelmet") { if(player.isInWater()) { player.setAir(20); } } }
-
-
on a armor tick update for if there is water with in a 3x3 radius from player
-
is there a place to find what forge looks for the sounds, what i have shows no errors but its not working, world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.FIRE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); world.playSound(player, (double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), Blocks.STONE.getSoundType().getPlaceSound(), null , Blocks.STONE.getSoundType().getVolume(), Blocks.STONE.getSoundType().getPitch()); so if you have any idea of why its not working i would like to know, i think its with how im getting the sound,
-
Never mind looking in my proxy was the problem i did not call the init inside either the modblock class or mod item class. so that was the problem nothing else but does not hurt to do what you said so thank you
-
okay so heres what ive gotten, tell me if im doing it right, meltingObsidian = new meltingObsidian("meltingObsidian"); ImeltingObsidian = new ItemBlock(meltingObsidian); // GameRegistry.register(meltingObsidian.setRegistryName(Reference.ModID + "_" + "meltingObsidian")); GameRegistry.register(ImeltingObsidian.setRegistryName(Reference.ModID + "_" + "meltingObsidian")); i dont know if i need both of the register's or not, but this is the crash now
-
how would i go about doing that? ive never had to do that before, do you have a link to the forge doc where it explains?
-
ya, so they really made it that easy to call the directions? ive been way over thinking it
-
the x+_x, y, z+_z is for my for loop. in 1.7.10 it checked 3 in front, back, left, right to see if its water or lava. i dont know where to look to find how things where changed, and i feel stupid for asking alot of questions. i did get the sound working now just need to get the checking the block done and the replacing the block done.
-
Thank you i Understood that, its just when reading long lines i get mixed up, so if i am getting what your saying then this should work for checking if the block is the source or not. and this double Grid will be where it will check? double Grid = (blockPos.getDistance(x+_x, y, z+_z)); boolean IsSource = (world.getBlockState(blockPos).isFullBlock());
-
im not fully understanding what your saying, i understand most of it but im still getting an error, so i know im missing somthing in the code heres a link to the github if needed: https://github.com/x-j0nnay-x/Definecraft-1.9.4-Src
-
thats what i know to do, everything ive seen on updating mods still use that. okay so ive changed it to GameRegistry.register(meltingObsidian.setRegistryName("meltingObsidian")); and im still getting the same crash. i re-updated the github link
-
heres the link to my git hub https://github.com/x-j0nnay-x/Definecraft-1.9.4-Src
-
this is what i have came up with but its still not working, and its giving me an error boolean IsFlowing = (world.getBlockState(blockPos.getDistance(x+_x, y, z+_z)) >= 1); //(x+_x, y, z+_z).getBlock >= 1); the error is : The method getBlockState(BlockPos) in the type World is not applicable for the arguments (double)
-
okay so i cant figure out whats going on with this crash it keeps saying different things, first it was my addsmelting, then it was my OreDictionary (i fixed by putting the registry in the postinit), now its saying my setCustomModelResourceLocation addSmelting error setCustomModelResourceLocation error
-
okay so ive been working and trying to figure out how this goes but i cant get my head to work out what to do im trying to check to see if the block is a source block, and im not finding how to do the block pos that the code is asking for if i try x,y,z it gives me an error, so heres the line of code im working on some of it is misssing since ive been working on this since last night and every time i try something i dose not work. the problems im having are at the playsound, getblock, setblock, the metadata of a block at the x,y,z , and checking a blocks light value at the x,y,z public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack, IBlockState blockState) { if (itemStack.getItem() == DefineCraftModItems.HellStoneBoots) { for(int _x = -3; _x <= 3; _x++) { for(int _z = -3; _z <= 3; _z++) { if(Math.abs(_x) + Math.abs(_z) <= 3) { int x = (int) player.posX; int y = (int) player.posY - 1; int z = (int) player.posZ; boolean IsFlowing = (world.getBlockState(null) != null); //(x+_x, y, z+_z).getBlock >= 1); boolean IsStill = (world.getBlockMetadata(x+_x, y, z+_z) == 0); Block block0 = world.getBlock(x,y+1,z); Block block = world.getBlock(x+_x, y, z+_z); //check and replace. if(block == Blocks.water && IsStill || block ==Blocks.flowing_water && IsStill){ blockState.setBlock(x+_x, y, z+_z, DefineCraftModBlocks.meltingObsidian1); world.playSound(player, (float)x + 0.5F, (float)y + 0.5F, (float)z + 0.5F, "random.fizz", 0.5F, 2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F); } if(block == Blocks.lava && IsStill || block ==Blocks.flowing_lava && IsStill){ world.setBlock(x+_x, y, z+_z, DefineCraftModBlocks.meltingObsidian); world.playSoundEffect((double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), "random.fizz", 0.5F, 2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F); } if(block == Blocks.water && IsFlowing || block ==Blocks.flowing_water && IsFlowing || block == Blocks.lava && IsFlowing || block ==Blocks.flowing_lava && IsFlowing){ world.setBlock(x+_x, y, z+_z, DefineCraftModBlocks.meltingObsidian0); world.playSoundEffect((double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), "random.fizz", 0.5F, 2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F); } //has full armor if (itemStack.getItem() == DefineCraftModItems.HellStoneBoots && itemStack.getItem() == DefineCraftModItems.HellStoneLegs && itemStack.getItem() == DefineCraftModItems.HellStoneChest && itemStack.getItem() == DefineCraftModItems.HellStoneHelmet){ { if (world.getLightValue (x-1, y+1, z) <7 && block0 != DefineCraftModBlocks.VanishingLight){ if (world.getBlock(x-1, y+1, z) == Blocks.air){ world.setBlock(x-1,y+1,z, DefineCraftModBlocks.VanishingLight); world.playSoundEffect((double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), "step.stone", 0.5F, 2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F); } else { world.setBlock(x-1,y+2,z, DefineCraftModBlocks.VanishingLight); world.playSoundEffect((double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), "step.stone", 0.5F, 2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F); } } if (player.isBurning()){ player.extinguish(); world.playSound((double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), "random.fizz", 0.5F, 2.6F + (world.rand.nextFloat() - world.rand.nextFloat()) * 0.8F); } } } } } } } //Just Chest if (itemStack.getItem() == (DefineCraftModItems.HellStoneChest)){ player.fallDistance = 0.0F; player.capabilities.allowFlying = true; } //just helme if(itemStack.getItem().getUnlocalizedName() == "HellStoneHelmet") { if(player.isInWater()) { player.setAir(20); } } }
-
okay thanks sorry i miss read what you put
-
Im still not finding the getblockmetadata. unless they changed the name