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.

KeeperofMee

Forge Modder
  • Joined

  • Last visited

Everything posted by KeeperofMee

  1. Make sure you are encoding with UTF-8.
  2. May I just ask something why are you including your modid & _ before the names? I'm pretty sure that all registered names are modid specific(please correct me if I'm wrong) i.e. incl. modid & _ before makes it so if a player want to get you stuff they have to do: /give @p yourmodid:yourmodid_youritemname instead of just doing: /give @p yourmodid:youritemname
  3. 1. Why aren't you using a switch in your GuiHandler. 2. Please follow java conventions. ClassNamesShouldBeCamelCased. 3. You're trying to open the wrong container. 4. Why are you checking the block in the GuiHandler you already do that in the container so no point in checking twice as the block can't change and crafting tables don't need TileEntities which can change compared to a block which would be removed if it wasn't the same
  4. Does using tileentities to store strings etc.. drain performance for players?
  5. You could make a resource pack as jabelar said.. or if you neccessary have to code it in just make a new armor which got same stats and uses your textures then remove the vanilla recipe and replace with recipe for your item.
  6. TileEntityRendererDispatcher.instance.renderTileEntityAt(new YourTileEntity(), 0.0D, 0.0D, 0.0D, 0.0F); Example: https://github.com/KeeperofMee/Survival/blob/master/com/keeperofmee/survival/renderers/ItemRenderGroundStone.java
  7. https://github.com/KeeperofMee/ClayMod/blob/master/claymod/items/CmChisel.java btw you might wanna add "this.setNoRepair();" no quotes, otherwise it will be possible to duplicate it forever.
  8. Can't you just simply store the chests in the individual players maybe or in the entity which has to eat?
  9. If you're making a connection to something try to surround it in try-catches also if you are in offline mode why are you even trying to connect to a server?
  10. I know I just made a bad choice of words I just meant usable as in usable when defining your blocks also using a block instead of a boolean is just like 1 line less of code so thats why I used a block.
  11. If you look at all methods which sets stuff in block all of them returns a block i.e. texture name, block name, hardness, resistance, step sound all methods must return a block to be usable. Ofcourse you can use the boolean as a flag but the method must return a block anyway.
  12. If I remember correctly I had that problem too but I simply re-runned gradle with gradlew setupDecompWorkspace --refresh-dependencies when I got that problem
  13. What he said but if you use a single block file for all non-special blocks like me I would recommend adding a new method in it: First you need to add a variable at the top: private Block beaconBase; after that we simple add a method called setBeaconBase which is going to return a block: public Block setBeaconBase(){ return beaconBase = this; } Now we do pretty much what he said with a twist: @Override public boolean isBeaconBase(IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ) { return this == beaconBase; } Now we simply add ".setBeaconBase()" to make a block a beacon base block: blockBronze = new SmBlock(Material.iron, "blockBronze", Block.soundTypeMetal, 5.0F, 8.0F).setBeaconBase(); I'm sorry I can't help but make random tutorials in the forums sometimes
  14. Why are you even using 10.12.2.1121? Use recommended 10.13.0.1180 for 1.7.10 from http://files.minecraftforge.net/ that's also what most big mods have been waiting to upgrade to.
  15. As diesieben said you can't do this however simply check if it's Blocks.air before you set the block or check if everythings air before it sets any block at all.
  16. There is a method called itemInteractionForEntity which I use in my bucket class to fill the milk bucket. So its pretty useless to make a event handler for a built in function in the item class... https://github.com/KeeperofMee/Survival/blob/master/com/keeperofmee/survival/items/buckets/SmTinBucket.java
  17. Hey! I don't usually work with worldgens and I was wondering how I'd go about generating my custom plant like normal plants/tall grass?' EDIT: Solved!
  18. Use "--username=anyusername"(w/o the "".).
  19. I just updated to pre-release 3 hours ago lol well guess it's time again
  20. Thanks, I actually found it moments after I posted this topics but thanks anyway
  21. Override these methods: Item#hasContainerItem Item#doesContainerItemLeaveCraftingGrid Item#getContainerItem
  22. Look in the beacons Tileentity in func_146000_x() it uses a method in world called List list = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, axisalignedbb); so I think you might find something useful in there. EDIT: Please note this is just a guess and I'm by far no expert on this stuff.

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.