![](https://forums.minecraftforge.net/uploads/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
lethinh
Members-
Posts
191 -
Joined
-
Last visited
Everything posted by lethinh
-
Hi everyone. I am having problems that I don't know how to make new line in the language file. I tried with \n but didn't work. Here is my language file:
-
The breeding recipe is a recipe that feed two animals and create new animal
-
I'm having problem that I do not know to how to find the breeding recipe. I would greatly appreciate your help!
-
I have followed what you said but didn't work. It didn't spawn the correct spawn egg. Here is my code: public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer playerIn, EntityLivingBase target, EnumHand hand) { if (target.worldObj.isRemote || !(target instanceof EntityAnimal) || target instanceof EntityMob) { return false; } String entityId = EntityList.getEntityString(target); if (EntityList.ENTITY_EGGS.containsKey(entityId)) { ItemStack spawnEgg = new ItemStack(Items.SPAWN_EGG); NBTTagCompound compound = spawnEgg.hasTagCompound() ? spawnEgg.getTagCompound() : new NBTTagCompound(); NBTTagCompound tagCompound = new NBTTagCompound(); tagCompound.setString("id", entityId); compound.setTag("AnimalTag", tagCompound); spawnEgg.setTagCompound(compound); playerIn.worldObj.removeEntity(target); InventoryUtils.dropItemStack(target.worldObj, target.getPosition(), spawnEgg); } return true; }
-
Here is my fml-client-latest.log: https://gist.githubusercontent.com/letruongthinh/ee45f7253dbceeec8c94665131bcd6aa/raw/97ded95c0992d2762dd6c0fc4804b7336569c54c/fml-client-lastest.log Here is my latest.log: https://gist.github.com/letruongthinh/18e40aa3516efb645c968a9db678ef11 My DxDiag system file: https://gist.github.com/letruongthinh/190d6d53df6a8ff41c869d7dade6316a And I'm very happy if you guys can fix this problem!
-
[1.11.2]How to change block slipperiness and bounciness.
lethinh replied to 1BowTiesAreCool1's topic in Modder Support
You need to create a block. Then create a event and then register it. In the event. + You must check whether the entity is null. + You have to check if we have just jumped out from the block + And do the method, get the block, state (from the entity) and check if the block is the CustomBounceBlock. For example: https://pastebin.com/SCEPCZVZ -
[Forge 1.10.2] Create a pickaxe that break unbreakable blocks?
lethinh replied to lethinh's topic in Modder Support
Well, I may forget to put state.getBlockHardness in the code so that the code didn't work. I have put it in the first but seem like I have deleted it. Thanks