Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

x_j0nnay_x

Members
  • Joined

  • Last visited

  1. i have this item that uses durability when crafting, In this version of minecraft i can not seem to fix it so it dose not doop when repairing. any one have an idea on what i should do?
  2. yes, but im not seeing how its saving the enchantments.
  3. 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.
  4. 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.
  5. 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
  6. okay thanks, i used Dev in 1.7.10 and it worked. thank you for the help.
  7. is it just me or is it all accost the board that no one can use setupDevWorkSpace and see the minecraft codes?
  8. 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); } } }
  9. on a armor tick update for if there is water with in a 3x3 radius from player
  10. 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,
  11. 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
  12. 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
  13. 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?
  14. ya, so they really made it that easy to call the directions? ive been way over thinking it

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.