Everything posted by larsgerrits
-
ChickenBones Multipart - [Highly Advanced]
You need to do all the TileEntity stuff in the part itself, as you cannot bind a TileEntity to a TMultiPart
-
[1.7.2] Faster Leavedecay?
Try overriding public void tickRate(World){} . The default value is 10, so making it 5 is maybe setting it to twice as much updates per second, so maybe making it decay faster.
-
Spawning A Mob on Block Right Click...
Question: Is there a really good reason for using the event? Why not use the onBlockActivated method in your Block class, as it is your custom class? For the Entity standing still, you are spawning it on the client instead of the server.
-
[1.7.10] problem with UnlocalizedName name subitems
What do you mean with that? Do you different names for different metadata? Or something else?
-
[1.7.10] problem with UnlocalizedName name subitems
In your constructor add this.setUnlocalizedName("yourItem"); which will result in item.yourItem .
-
Instalation Problems
Try updating to the latest version.
-
Forge instantly crashing -Basically fixed!-
Does this issue persist in the latest version?
-
Run command from Java
What are you trying to do?
-
1.7.10 Throwable Entity is not rendering upon being thrown
If you don't have this, your mod will crash on a Dedicated Server...
-
Custom models for tile entitys?
Well... @Override public TileEntity createNewTileEntity(World arg0, int arg1) { // TODO Auto-generated method stub return new TileEntityTank(); } ClientRegistry.bindTileEntitySpecialRenderer(TileEntityE.class, new TileEntityERenderer()); Here's your problem...
-
PlayerLoggedOutEvent Not Working
The EventBus for FML is FMLCommonHandler.instance().bus() .
-
Getting different items from different stages, [Crops]
I mean, using getItemDropped() , you can only return 1 kind of item, and not 2 different items. To specify the amount to be dropped using getDrops(params) , you need to return an ArrayList containing ItemStacks, in which you can specify the stacksize. If you use something like this: public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) { ArrayList<ItemStack> drops = new ArrayList<ItemStack>(); drops.add(new ItemStack(Items.dye, 8, 3)); return drops; } it will drop 8 dyes with a metadata of 3. So with getDrops(params) you can be alot more precise then with getItemDropped() .
-
Getting different items from different stages, [Crops]
That only works if you want it to drop 1 item. If you want more control about your drops, you should override getDrops(params) . BTW, I know Java. I atleast know that getDrops(params) isn't called this.func_149865_P() in the BlockCrops class...
-
[1.7.10]Fluid World Generation
You don't need a new version of WorldGenLakes. You can just call new WorldGenLakes(YOUR_FLUID_BLOCK).generate(World,Random,Integer,Integer,Integer); and that will make it generate.
-
Explosion Event -- detecting / stopping / manipulating explosions?
Don't hijack dead threads please. Make your own post.
-
Checking Whether a Player is Holding a Block
You could probably use something like this: if(player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem().getItem() instanceof ItemBlock){//DO STUFF}
-
Getting different items from different stages, [Crops]
- [1.7.2] Name of fields in Material.class
You probably exported it wrong. You need to export it using gradlew build from the command line (inside the forge folder).- Some dropped items can't be picked up (usually first dropped)
Why do you have 2 FMLPreInitializationEvents? Copy the recipe to the FMLInitializationEvent and remove the first FMLPreInitializationEvent. That should solve the issue, as the issue was caused by registering a recipe with a ItemStack containing a null item (as the items weren't initialized before the recipe).- Change spawning entity in a monster spawner | NBTTagCompound at blocks
Can you post the method in which you call that code?- Some dropped items can't be picked up (usually first dropped)
You are spawning the Items on the client side, but you need to spawn them server side. You need to use if(!world.isRemote) at the beginning of your shearSheep method.- Change spawning entity in a monster spawner | NBTTagCompound at blocks
(TileEntityMobSpawner) spawner = (TileEntityMobSpawner)world.getTileEntity(x,y,z)- Block not rendering
Where do you register your render class?- Forge - Rightclick event??
player.openGui(params);- Forge - Rightclick event??
Well, your method signature doesn't equal the method signature from the Item class. Go into the Item class, search for onItemRightClick and copy the method. Make sure you rename the parameters to something readable! - [1.7.2] Name of fields in Material.class
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.