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.

ajose0538

Members
  • Joined

  • Last visited

Everything posted by ajose0538

  1. I already changed it, but it still does not work I have to run gradlew.bat?
  2. I just updated like 3 times, and it's still the same
  3. I have problems with the MDK, in some arguments like the "ItemSize--" it is assumed that in minecraft 1.11 it is now "shrink (1)" but it gives me error and also happens to me with "isEmpty", and they told me to verify my version Of mapping and version of forge and everything is fine I do not know what the error build.gradle Any solution?, I have happened to a src 1.11 that works and when I try to put me out the errors that "shrink (1)" is not found or "isEmpty" etc ....
  4. Upgrade from 1.10 to 1.11 Help, on line 77 and 79 gives me an error for the text "heldItem.Item" and "heldItem.Size--;" package com.modding.WillyWonka.blocks; import java.util.List; import com.modding.WillyWonka.Reference; import com.modding.WillyWonka.WillyWonka; import com.modding.WillyWonka.init.ModItems; import com.modding.WillyWonka.tileentity.TileEntityJar; import net.minecraft.block.Block; import net.minecraft.block.ITileEntityProvider; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; public class BlockJar extends Block implements ITileEntityProvider { // 1 / 16 = 0.0625 private static final AxisAlignedBB BOUNDING_BOX = new AxisAlignedBB(0.0625 * 4, 0, 0.0625 * 4, 0.0625 * 12, 0.0625 * 8, 0.0625 * 12); private static final AxisAlignedBB COLLISION_BOX = new AxisAlignedBB(0.0625 * 5, 0, 0.0625 * 5, 0.0625 * 13, 0.0625 * 9, 0.0625 * 13); public BlockJar() { super(Material.GLASS); setUnlocalizedName(Reference.WillyWonkanBlocks.JAR.getUnlocalizedName()); setRegistryName(Reference.WillyWonkanBlocks.JAR.getRegistryName()); setCreativeTab(WillyWonka.CREATIVE_TAB); setSoundType(SoundType.GLASS); } @Override public boolean isFullBlock(IBlockState state) { return false; } @Override public boolean isOpaqueCube(IBlockState state) { return false; } public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.TRANSLUCENT; } @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return BOUNDING_BOX; } @Override public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn) { super.addCollisionBoxToList(pos, entityBox, collidingBoxes, COLLISION_BOX); } @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing heldItem, float side, float hitX, float hitY) { if (!worldIn.isRemote) { TileEntity tileEntity = worldIn.getTileEntity(pos); if (tileEntity instanceof TileEntityJar) { TileEntityJar jar = (TileEntityJar) tileEntity; if (heldItem.Item() == ModItems.chocolate) { if (jar.addChocolate()) { heldItem.Size--; } } } } return true; } @Override public TileEntity createNewTileEntity(World worldIn, int meta) { return new TileEntityJar(); } }

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.