larsgerrits
Members-
Posts
3462 -
Joined
-
Last visited
-
Days Won
17
Everything posted by larsgerrits
-
[SOLVED] [1.10.2] Problem with saving items in my pan
larsgerrits replied to grossik's topic in Modder Support
This is an English forum, let's keep it that way. -
[SOLVED] [1.10.2] Problem with saving items in my pan
larsgerrits replied to grossik's topic in Modder Support
There's only 1 thing in the Check method that can be null (I'm guessing it's an NPE). Figure it out and do a proper null -check. -
[1.8.9] Rendering Custom Primed TNT (And custom Arrow)
larsgerrits replied to Tschipp's topic in Modder Support
EntityRegistry.registerModEntity(EntityBedrockiumTNTPrimed.class, "BedrockiumTNT", 2, this, 0, 1, true); You have set the tracking range to 0, maybe that could be the issue? -
[SOLVED] [1.10.2] Problem with saving items in my pan
larsgerrits replied to grossik's topic in Modder Support
"I have a problem with render" doesn't give us any clue about what's not working correctly? Is it not rendering? Is it rendering weird? Is it upside down? Please, be more specific. -
In 1.11 Minecraft forces everything to be lowercase. So that's why it's looking for the lowercase name. So you should update everything to lowercase names, including your modid.
-
1.7.10 is no longer supported by Forge.
-
I might be wrong, but I think Forge is the coremod that is crashing, as there are no coremods specified in the "coremods are present:" warning. Also, the crashreport contains this: at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getField0(Unknown Source) at java.lang.Class.getField(Unknown Source) at net.minecraftforge.fml.client.FMLClientHandler.detectOptifine(FMLClientHandler.java:297) It looks like the coremod to detect optifine hasn't been updated yet? @OP, what Forge version are you using?
-
Slight problem if I change my keybinding of sneaking to ctrl I would have to press ctrl instead of shift as the keybinding applies to different actions not individual keys. You can also make your own KeyBinding if you want. What? KeyBindings are @SideOnly(Side.CLIENT) . If you call them from a method in the Item class , it still has to load the KeyBinding class "in case it get's called". Now that I'm back at my IDE (wasn't previously), I see that Item#addInformation has the @SideOnly(Side.CLIENT) annotation, so you might be able to pull it off without proxies. But to be sure, I'd put it in a proxy.
-
In the Item#addInformation method, check if a KeyBinding#isKeyDown() . The vanilla KeyBinding s are located in Minecraft.getMinecraft().gameSettings . You probably want to wrap this in a method in your proxy, to make the dedicated server not crash.
-
This is not an issue with Forge, but an issue with adfoc.us itself. I have no idea how long it's going to take.
-
1.7.10 is no longer supported by Forge.
-
Creating a crafting handler the exports multiple items
larsgerrits replied to gmod622's topic in Modder Support
It seems like you don't know Java. If you do, you should be able to solve this yourself. If not, learn Java first. -
In 1.10.2, Item#onUsingTick takes an EntityLivingBase instead of an EntityPlayer . Also, update to 1.10.2. There's already a beta for 1.11, which will soon be the standard meaning we won't support <1.8.9 anymore.
-
[SOLVED] is there a way to get stack.stackSize in 1.11 ?
larsgerrits replied to trollworkout's topic in Modder Support
but it was so beautiful.... if (!playerIn.capabilities.isCreativeMode) { --itemStackIn.stackSize; } ItemStack#func_190918_g( amount ) will remove amount from the stacksize. -
[SOLVED] is there a way to get stack.stackSize in 1.11 ?
larsgerrits replied to trollworkout's topic in Modder Support
You'd have to look it the ItemStack class if there's a method for it. -
It's fine if you want to look at the vanilla furnace for help, that's fine. But in this case, it isn't. The Capability is a system Forge added to allow better compatibility between mods. Most mods aren't checking for IInventory anymore, so if you use it, most mods with e.g. item pipes won't work with your blocks. There's a good explanation on Capabilities at mcforge.readthedocs.io. On the other hand, it means (potentially) being able to toss item stacks of Air into the world, stacking them in your inventory, or pulling them out of the crafting grid. You'd have to do more work to prevent this, than I imagine you'd save by handling null correctly. As far as I could tell from cpw's stream, vanilla has checks (e.g. stacksize == 0 or item==air) in the ItemStack class and handle that appropriately. This means you, as the modder, probably won't have to deal with air stacks.
-
First of all, what is pulverizerItemStacks ? It doesn't look like an IItemHandler , which you should use using together with the Capability system.
-
That's super weird. Why would they change that? I have no clue, but probably to reduce NPEs... That also means every null-check you have won't work. There's a new method in ItemStack you have to use. Look at the vanilla code to figure out how that method is called.
-
Creating a crafting handler the exports multiple items
larsgerrits replied to gmod622's topic in Modder Support
entry.getValue() will return an OutputWrapper , which you can get the ItemStack from. -
I haven't messed with 1.11, but it seems like you can't pass in a null anymore. Instead, use ItemStack.field_190927_a , which (I think) is an ItemStack of the air block.
-
It looks like your Runecraft.instance is null. Is "rc" your modid? Why not [use Reference.MOD_ID like everywhere? Also, your modid is way too short, it should be something longer and more meaningful, like "runecraft" .
-
[1.10.2][SOLVED] add tooltip for not mine items?
larsgerrits replied to lukas2005's topic in Modder Support
Use the ItemTooltipEvent . -
MC 1.11 Release is out so when forge 1.11 will be :D?
larsgerrits replied to lukas2005's topic in General Discussion
First of all, do you really expect Forge to be out on the same day as Minecraft's release? Also, Lex and cpw have a almost working version of Forge for 1.11-pre1 (linked by loordgek). There are a few things they have to solve with the 1.11 update to have the first public version of Forge available. But remember, it will be very buggy! So it isn't recommended, as bugs are expected. -
This topic has been moved to Minecraft General. [iurl]http://www.minecraftforge.net/forum/index.php?topic=43293.0[/iurl]