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.

mnn

Members
  • Joined

  • Last visited

Everything posted by mnn

  1. I glanced over your code, but I don't see anything wrong . You can try to compare your code with this, maybe you spot something. https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/trees/block/BlockFruitSapling.java#L41 https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/trees/JaffasTrees.java#L472
  2. Both, but UnlocalizedName for in-code identification of a block (e.g. you set "myBlock" and it becomes "tile.myBlock") and LanguageRegistry for title shown to a player (e.g. "My Block").
  3. Both, but UnlocalizedName for in-code identification of a block (e.g. you set "myBlock" and it becomes "tile.myBlock") and LanguageRegistry for title shown to a player (e.g. "My Block").
  4. Yes, you could just put an ItemStack (the spear item with enchants and other things on it) into the entity. ItemStack can serialize itself into NBT .
  5. Yes, you could just put an ItemStack (the spear item with enchants and other things on it) into the entity. ItemStack can serialize itself into NBT .
  6. there is 4096 block slots available. it starts at 0 so maximal id is 4095 . it's in the Block class: public static final Block[] blocksList = new Block[4096];
  7. there is 4096 block slots available. it starts at 0 so maximal id is 4095 . it's in the Block class: public static final Block[] blocksList = new Block[4096];
  8. You're not setting proper internal names of your blocks (use setUnlocalizedName).
  9. You're not setting proper internal names of your blocks (use setUnlocalizedName).
  10. too high block id?
  11. too high block id?
  12. mnn replied to mnn's topic in Mods
    updated to 1.5.1
  13. mnn replied to mnn's topic in Mods
    updated to 1.5.1
  14. Rendering model(=class which inherits from ModelBase) for a Block is problematic, it's usualy circumvented by using TileEntity for which is quite simple to use a custom model. Working sample (but not perfect, e.g. the getRenderType in block is redundant): https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/client/ClientProxy.java#L47 https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/block/TileEntityJaffaStatue.java https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/block/BlockJaffaStatue.java https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/client/TileEntityJaffaStatueRenderer.java https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/client/ModelJaffaStatue.java
  15. Rendering model(=class which inherits from ModelBase) for a Block is problematic, it's usualy circumvented by using TileEntity for which is quite simple to use a custom model. Working sample (but not perfect, e.g. the getRenderType in block is redundant): https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/client/ClientProxy.java#L47 https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/block/TileEntityJaffaStatue.java https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/block/BlockJaffaStatue.java https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/client/TileEntityJaffaStatueRenderer.java https://github.com/mnn/jaffas/blob/470f03cc54d2220219e27ace00b4acdedc1fe555/src/minecraft/monnef/jaffas/food/client/ModelJaffaStatue.java
  16. make sure your directory structure inside the final jar corresponds to the packages. (e.g. "Roads.class" should be in jar in dir - "co/uk/silvania/roads").
  17. make sure your directory structure inside the final jar corresponds to the packages. (e.g. "Roads.class" should be in jar in dir - "co/uk/silvania/roads").
  18. You have to synchronize TileEntity on both sides: server -> client. It's done by implementing getDescriptionPacket and onDataPacket (when you want to force a server to send update you'd use worldObj.markBlockForUpdate). Example: https://github.com/mnn/jaffas/blob/98acc4d9607d6493b82b277b3bfea3b7dacffc69/src/minecraft/monnef/jaffas/food/block/TileEntityPie.java
  19. You have to synchronize TileEntity on both sides: server -> client. It's done by implementing getDescriptionPacket and onDataPacket (when you want to force a server to send update you'd use worldObj.markBlockForUpdate). Example: https://github.com/mnn/jaffas/blob/98acc4d9607d6493b82b277b3bfea3b7dacffc69/src/minecraft/monnef/jaffas/food/block/TileEntityPie.java
  20. Mojang changed in 1.5 value of "any damage" in recipes. Use "OreDictionary.WILDCARD_VALUE" instead of "-1" and you should fine .
  21. Mojang changed in 1.5 value of "any damage" in recipes. Use "OreDictionary.WILDCARD_VALUE" instead of "-1" and you should fine .
  22. func_96450_a? But it's not a good practice to directly modify base classes, this should be done via ASM library (or maybe Player API).
  23. func_96450_a? But it's not a good practice to directly modify base classes, this should be done via ASM library (or maybe Player API).
  24. For crafting implement ICraftingHandler and register with GameRegistry.registerCraftingHandler. For block placing/breaking I don't think that there's any hook. I saw a bunch of PR implementing it (some looked really good), but as far as I know no one was accepted . For "do dmg" you can use LivingAttackEvent.
  25. For crafting implement ICraftingHandler and register with GameRegistry.registerCraftingHandler. For block placing/breaking I don't think that there's any hook. I saw a bunch of PR implementing it (some looked really good), but as far as I know no one was accepted . For "do dmg" you can use LivingAttackEvent.

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.