Everything posted by Failender
-
[1.8] Changing player health
Output is 20. Although it doenst matters if I use a float or an integer there, but since mc is using floats i wanted to do the same.
-
Furnace smelting not working
1. Show line 149 2. PLEASE start using spoiler tags [nobbc] [/nobbc]
-
[1.8] Changing player health
public ExtendedPlayer(EntityPlayer player) { hitpoints = 20f; this.player =player; skillPointsLeft = 1; }
-
[1.8] Changing player health
Hello everyone, I am triing to change the player health when he is joining the world. The problem is that it seems to kill the player when he is joining the world. Is there a better way to set his health? Is there a better event to call this? @SubscribeEvent public void joining(EntityJoinWorldEvent event) { if(event.entity instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.entity; ExtendedPlayer ext = ExtendedPlayer.get(player); ext.joinWorld(); } } public void joinWorld() { player.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(hitpoints); }
-
[1.8] Item and block drops - leaves [[Solved]]
Events are ONLY for things that are out of your control (vanilla) dont use Them for your own Blocks, there are Methods to overwrite to control The behaviour
-
[1.7.10]Super Pickaxe
Try to check it out urself. Add a syso for The yaw look north and trigger The syso.
-
[1.8] Registering commands good practices
maybe split things up. one command for strutures, one for themes one for plans
-
[1.8] Registering commands good practices
what do you wanna do with the commands.
-
[1.8] Registering commands good practices
Depends on the case. Normally I would say this is a case to think about SRP http://www.oodesign.com/single-responsibility-principle.html
-
[1.8] Registering commands good practices
one command should be for one thing.
-
[1.8.7] Trouble with SetBlockState
is Main.CasteWall initialized?
-
[1.7.10] TileEntity.shouldRefresh called on client only.
how are you destroying your TE? Maybe you can call a method on your te on server side just before destroying it?
-
Help With GUI (1.8)
1. 1.8 guis are basically The same as 1.7 2. you will encounter The Problem that there is not just one recipe for each item
-
[1.8] Custom structure spawning [[Solved]]
Hint of The day :learn Java. Google The error and you should find around 3k answers
-
Minecraft Forge Crashed when trying to play
Wrong forum. This forum is for modder support, not for player playing the game. (ur java is outdated)
-
[1.8] Question about OpenGL/ GuiRendering
I want to create a lot of guis to follow a specific structure, so I thought I should work with modular rendering. No problem with most of it, just one question. GuiButtons and GuiLabels have the two lines GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0); GlStateManager.blendFunc(770, 771); what are they doing?
-
Organizing mods
- How to make mobs drop your item
eeeehm yeah sorry I got those moments where my brain turns out :'D- How to make mobs drop your item
Vanilla mobs use harvest drops event, for custom mods Theres a method that you should Override which determines The drops (check your IDE)- Organizing mods
Create a New project for every mod. If you want to have a multiproject workspace import The other mod project via eclipse- [1.8]Kill an entity on game close/save
you could also do the trick by adding a nullcheck for mercenarymod.items.armasdefuego.balas.bala76239mm_entity.func_70071_h- Container Problem
would u mind to tell us ur error? EDIT: You should be switiching by the id given in the GuiHandler, its better style :b- [1.7.10 - SOLVED] Strange errors when launching
Dont use unlocalized names for item registry- Increase hunger over then 20
which means that it should not be a problem, you just need to do some rendering on your own- [1.8] How to summon that particle when block breaks?
show your crash and code please - How to make mobs drop your item
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.