Everything posted by mnn
-
bonemeal issues
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
-
Language Registry applies last use to all
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").
-
Language Registry applies last use to all
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").
-
Item to ItemStack to Entity
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 .
-
Item to ItemStack to Entity
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 .
-
Dafuq error?!?!
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];
-
Dafuq error?!?!
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];
-
Language Registry applies last use to all
You're not setting proper internal names of your blocks (use setUnlocalizedName).
-
Language Registry applies last use to all
You're not setting proper internal names of your blocks (use setUnlocalizedName).
- Dafuq error?!?!
- Dafuq error?!?!
- [1.6.4] Auto-shutdown [server]
- [1.6.4] Auto-shutdown [server]
-
Custom block renderer
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
-
Custom block renderer
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
-
Error with compiling
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").
-
Error with compiling
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").
-
TileEntity not loading how it should
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
-
TileEntity not loading how it should
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
-
[Solved]Crafting problems when crafting with a damaged item
Mojang changed in 1.5 value of "any damage" in recipes. Use "OreDictionary.WILDCARD_VALUE" instead of "-1" and you should fine .
-
[Solved]Crafting problems when crafting with a damaged item
Mojang changed in 1.5 value of "any damage" in recipes. Use "OreDictionary.WILDCARD_VALUE" instead of "-1" and you should fine .
-
Help identifying code relating to display of nametags
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).
-
Help identifying code relating to display of nametags
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).
-
Handle PlayerInteractEvent Problem
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.
-
Handle PlayerInteractEvent Problem
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.
IPS spam blocked by CleanTalk.