Jump to content

x_j0nnay_x

Members
  • Posts

    50
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

x_j0nnay_x's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. yes, but im not seeing how its saving the enchantments.
  2. 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.
  3. 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.
  4. 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
  5. okay thanks, i used Dev in 1.7.10 and it worked. thank you for the help.
  6. is it just me or is it all accost the board that no one can use setupDevWorkSpace and see the minecraft codes?
  7. 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); } } }
  8. on a armor tick update for if there is water with in a 3x3 radius from player
  9. 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,
  10. 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
  11. 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
  12. 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?
  13. ya, so they really made it that easy to call the directions? ive been way over thinking it
  14. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.