larsgerrits
Members-
Posts
3462 -
Joined
-
Last visited
-
Days Won
17
Everything posted by larsgerrits
-
You need 47 different textures for each possibility. You also need a way to check the surroundings of that block, and set the texture based on the surroundings.
-
[1.7.2] How to make a player invisible to mobs?
larsgerrits replied to SackCastellon's topic in Modder Support
Ok, thanks, it works. Now i have another problem: If the player is firstly invisible, then the mobs don't attack him, but if the mobs are attacking him and the player becomes invisible, the mobs still attack him. This is my code: /** * Only works with AI mobs: Zombies, Skeletons and Creepers. * @param event */ @SubscribeEvent public void onEntitySetTarget(LivingSetAttackTargetEvent event) { if (Loader.isModLoaded("SKC-Camouflage")) { if (event.target != null && event.target instanceof EntityPlayer && event.entityLiving.func_94060_bK() != event.target) { if (event.target.isInvisible()) { ((EntityLiving) event.entity).setAttackTarget(null); } } } } That's because the mob already has a target, so it won't set a new. So you'll have to deal with it, or find a solution for it. -
Hello, When i was updating my mod to forge 1.7.2 i found this new button in the menu when you hit ESC (forgot the name). My question is: what can i do with that button/menu and how would i implement something in my mod for that button/menu?
-
That's what you get if you blindly copy / paste. BTW, 20 ticks = 1 seconde, not 30 ticks
-
Register your stuff in preInit.
-
Can you post the main class and the clientproxy class?
-
@EventHandler public void load(FMLInitializationEvent event) { proxy.registerRenderers(); int dimID = config.get(Configuration.CATEGORY_GENERAL, "Kepler-22b", -30).getInt();//config cannot be resolved DimensionManager.registerProviderType(dimID, new PlanetWorldProvider(), false); //The method registerProviderType(int, Class<? extends WorldProvider>, boolean) in the type DimensionManager is not applicable for the arguments (int, PlanetWorldProvider, boolean) DimensionManager.registerDimension(dimID, dimID); }]/code] Tthis piece of code: [code]new PlanetWorldProvide() you need to change to PlanetWorldProvider.class
-
[SOLVED][1.7.2]Custom "Furnace" crashing the game
larsgerrits replied to Graphicscore's topic in Modder Support
GameRegistry.registerBlock(blockMasherIdle, "Masher"); GameRegistry.registerBlock(blockMasherActive, "Masher"); I saw this code, and i saw that you registered the active and the idle block with the same name. I don't know if this will do anything, but you can change it and see what happens then. -
Yes, you can do that, just use this: Gl11.glScalef(0.5F,0.5F,0.5F); with 0.5F being the half of the original size.
-
[1.6.4] Targeting larger than 1 block models.
larsgerrits replied to Ceiling Gecko's topic in Modder Support
Yeah, you have to use a ghost block that's on top of the original block, with bounding boxes that go downwards. And if you break the ghostblock, you need to break the original block aswell, and if you break the original block, you also need to break the ghost block. -
Please post full crash report
-
Try removing the spaces before AND after the equals sign.
-
It will take a long time to replace all of the field_***** thingys with usefull names, so you'll just have to wait for them to find out what they mean, so they can add a usefull name to them.
-
Try hitting Ctrl+Shift+T for opening classes. For vieuwing the classes, try searching on google for the JD-Eclipse plugin, that lets you view class files with the sources, without using a external program.
-
error: package net.minecraftforge does not exist
-
You're in the wrong place! This is a section for people that MAKE mods, not people that USE mods. So you should report this post to a moderator t move it to the other section. BTW, you need to install powercystals core.
-
In the decompiled workspace, the value has the name "aiArrowAttack". But if you recompile the code, the field is called field_****. So if you try to get the "aiArrowAttack" field in the decompiled workspace, it works, but not in the recompiled version, where it's called "field_****", so that field isn't there, with causes a exeption.
-
In your resources folder, make a folder called "assets/{modid}/lang" and in that you make a file called "en_US.lang" and in there add this line: "{UNLOCALIZED_NAME}=Your Name That Will Be Displayed When A Player Hovers Over That Item". Done! That's how simple it is!
-
[1.7] Furnace with higher ingredient consumption
larsgerrits replied to Zzyxz's topic in Modder Support
The vanilla furnace doesn't check for stacksizes, so if you want more consumption, you need to make your own furnace. -
[Solved] [1.7.2] Is there a ender pearl throw event?
larsgerrits replied to MinecraftMart's topic in Modder Support
Can't you even do that? How do you even want to make a Minecraft mod that way? -
You need to use the TickEvent class. That class had multiple sub-classes that correspond to the side they are ran on. If it's called on the client side, you can use the TickEvent.ClientTickEvent class and you need to register it.