
Tsiumi
Members-
Posts
40 -
Joined
-
Last visited
Everything posted by Tsiumi
-
Hello and sry 4 my silly questions again. I tried a normal drop as well but it dont works.. I'm familiar with the codes from 1.6... but 1.8 is different. v.v I tried to update the 1.6 code to 1.8: public class ItemLooting { public static double rand; public Random r = new Random(); public void onEntityDrop(LivingDropsEvent event) { if(event.entityLiving instanceof EntityCreeper) { event.entityLiving.dropItem(BasicEWM.fireCore, r.nextInt(2)); } } } And add this to my ModDatabase: MinecraftForge.EVENT_BUS.register(new ItemLooting());
-
Thank You! It works!
-
wtf but it don't work with your code Failender... I got an error..
-
My Item don't have a effect with this delpi...
-
Hm I think I don't understand... you mean I've change if(Player.getCurrentEquippedItem() !=null) to if(Player.getCurrentEquippedItem() == ModDatabase.myItem)
-
Hello and sry for my silly questions. I want to add a effect on my Item if I hold it. But I everytime i get the effect if it just in the inventory... How can I fix it? (This is a Code I've used in 1.6 but I deleted some code in it to fix errors... this is maybe the problem..) public void onUpdate(ItemStack itemstack, World world, Entity entity, int i, boolean flag) { EntityPlayer Player = (EntityPlayer) entity; if(Player.getCurrentEquippedItem() !=null) { Player.addPotionEffect((new PotionEffect(Potion.fireResistance.getId(), 25, 0))); } else { Player.curePotionEffects(itemstack); } } I've changed this: if(Player.getCurrentEquippedItem() !=null && Player.getCurrentEquippedItem().itemID == this.itemID To this: if(Player.getCurrentEquippedItem() !=null) How can I replace .itemID?
-
JimiIT92 that was to diesieben07 'cause his name is german so I know he can speak german
-
diesieben07? Was ist falsch daran? Beziehungsweise was stört daran? Ich würde gerne wissen, wenn ich was tue, was ich da tue.
-
jabelar that's not my problem. But I've fixed it. btw I use a translation file. Thx JimiIT92 I've an Idea. It works with: public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean Adva){ stack.setStackDisplayName(EnumChatFormatting.GOLD + StatCollector.translateToLocal(this.getUnlocalizedName()+".name")); } }
-
Yeah I know I tried it with toString(). But how can I define the Item Name? I mean the item_name for translations etc.
-
Hello How can I define my Itemname? I don't mean the Name like "Item Name" The String Name "item_name" When i do this: public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean Adva){ stack.setStackDisplayName(EnumChatFormatting.YELLOW + StatCollector.translateToLocal("item."+toString()+"."+"name")); } } I got this Ingame: http://abload.de/img/2015-08-11_15.52.50dpqa4.png[/img] How can I fix that? I want to define: item.item_name.name but I want this for more Items not just 4 one. Like: StatCollector.translateToLoca("item.item_name.name)
-
Anyone knew a good Tutorial to learn to create a GUI Kennt jemand ein gutes Tutorial um eine GUI zu erstellen? wie z.B. hier?: Here is an example: And here the description from the GUI Und hier die Beschreibung der GUI: Please help me Bitte hilft mir thx LG Tsiumi
-
yes i don't know how to make a new GUI and how i delete the old inventory GUI
-
How did u mean that? I want to change the inventory to this GUI
-
How can I edit the default inventory? Here is my GUI Here is an example: Who can help me? thx
-
and how can i make my own structure?
-
Thx! it works! *solved
-
What? Can you explain that?
-
Didn't work have anyone a other idea?
-
I want to Loot in existing Mobs(Zombies, Creeper etc.) but i don't know how it works I have try it: package mib.item; import mib.MIB; import net.minecraft.entity.monster.EntityZombie; import net.minecraft.item.Item; import net.minecraft.world.World; public class EntityBloodDropLoot extends EntityZombie{ public EntityBloodDropLoot(World par1World) { super(par1World); } protected int getDropItemId() { return MIB.bloodDrop.itemID; } } It didn't work Can you help me?
-
Hello I want to create a new Tree with my own Model and my own blocks.... How can i generate that? How can i create a new Dimension with out the blocks from minecraft only my blocks? Thx for help
-
thx a lot GotoLink!!!! *closed*
-
I mean... The block have 4 drops, but if i destroy the block its drop 1 item.... like gravel if i destroy gravel its drop gravel or flint.... but i want it with 4 items and the same chance
-
Have someone a idea?
-
I have look in the temp folder.... i have found the problem i've forgot the twillight.png.mcmeta it works the animation displayed thx for your help *closed*