Everything posted by GotoLink
-
[1.7.2][SOLVED] See if player is burning
You could be interested in PlayerTickEvent.
-
[1.7.2][SOLVED] See if player is burning
Because mods load before any world or player.
-
[1.7.2] Custom crop like a potatoe that grows 2 blocks high
Well...Mojang knows how ? Crops and 2 blocks high plants are in vanilla.
-
[1.7.2] How to make a slab
You need to extend net.minecraft.block.BlockSlab for those blocks.
-
[1.7.2] How to make a slab
ItemSlab isn't a Block, so no, this isn't going to work. blockHalfboneslab = new blockSlab(blockHalfboneslab); You should also get a compiler warning from that kind of stuff. Guess why ? You need to use GameRegistry.registerBlock(block, itemClass, name); or equivalent.
-
entity not rendering
Delete all the Cfitems# classes. Register your items in FMLPreInit.
-
[1.7.2] Updating to 1.7.2 - All sorts of Questions
player.getCommandSenderName() or player.getUniqueId(), depending on what you want to do with it.
-
[1.7] Crashing, and have no clue why
double totalEncumberance = playerWeightValues.encumberance + playerWeightValues.armour; That is the line crashing in the github issue latest report. The only explanation for your crash is playerWeightValues = null . Thus you are missing a check against that.
-
[1.6.4]How To Add Multiple Tree Generators To One Biome?
You can change the "biome decorator" of your biome, or override its decorate method to do more tree generation.
-
[1.7.2] Can't find the obfuscated names
The srg names are in the build/unpacked/conf subfolder.
-
[1.7.2]Crash when my Sapling Drops from leaves
That is an AIOOB. You want to check if your sapling block accepts damage values, as the item dropped from the leaves has metadata=4 in your crash report.
-
[1.7.2] Custom Bow / Arrow Need help! [SOLVED / FIXED]
If you extend EntityArrow, do not copy everything that is inside it.
-
[1.7.2][SOLVED]String cannot be resolved or is not a field
Vanilla items are accessible in the Items class, not the Item class.
-
[1.7.2] Making the gravity like Mars.
You mean, before the world or any entity is loaded ? That isn't possible. As you said, each entity handles its own gravity. Meaning "gravity" only operates in game ticks. You might be interested in the LivingFallEvent and LivingJumpEvent. I kinda want to point out that Minecraft gravity isn't close to the Earth's.
-
[1.7.2] Textures not showing
Is CMBlocks.init(); in the FMLPreInit event ? Also make sure that texture matches the name, it is case sensitive.
-
[1.7.2][SOLVED] unassigned blocks & items upon reenter the World
You should update Forge instead of using that "fix".
-
Setting resource location for potion
Check InventoryEffectRenderer. I believe the default texture is binded while iterating over each potion effect.
-
[SOLVED][1.7.2] No class def found error for a vanilla class
Either "WildAnimals" or "PacketWildAnimals" use a client side only stuff without having the necessary @SideOnly annotation. Check the respective imports.
-
Setting resource location for potion
Potion#setIconIndex(int,int) GuiContainer.ResourceLocation("textures/gui/container/inventory.png") You can also override Potion#getStatusIconIndex() to bind a different texture before rendering.
-
1.7.2 NEED HELP with entities and events
LivingSpawnEvent event) { EntityPlayer player = (EntityPlayer)event.getPlayer(); if(event.entity == EntityCutstomMob && StorageLevel.getPlayer().GetMasterLevel() < 5) } You can't get a EntityPlayer instance from those event. They are for mobs. Your entity check could be if(event.entity.getClass().equals(EntityCustomMob.class))
-
[SOLVED][1.7.2] No class def found error for a vanilla class
It is the client. Server can't access it.
-
[Unsolved]Creative Tab NullPointerException when Rendering
We need the most recent version of your main class, if this isn't the one already. If it is, the item and block initializing still needs to be put into FMLPreInit, that is how you get textures working.
-
[1.6.4] Get the recipe of an item
IRecipe already has many methods you can use. It is probably unnecessary to check and cast for each type.
-
[Unsolved]Creative Tab NullPointerException when Rendering
Initialize items and blocks in the PreInit event, please. Also, your @Instance doesn't have the correct modid.
-
[Unsolved]Creative Tab NullPointerException when Rendering
Then we need to check your Eancraft class.
IPS spam blocked by CleanTalk.