Everything posted by Draco18s
-
New at modding, need help with nullPointerException
Do you see this line? https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/EasyRegistry.java#L72 Do you have that line in your own code?
-
[1.12] Custom gui doesn't work on server only
My mistake, I looked at my own code and saw I was doing it on both sides and didn't investigate further. And it was midnight.
-
[1.12] Custom gui doesn't work on server only
https://github.com/DragonFerocity/expandedaesthetics/blob/master/src/main/java/com/DragonFerocity/expanded/blocks/ModAlloyFurnace.java#L172 That has to be called client-side too Also, this will always be true because of this line.
-
Options for hooking into BlockFalling -> onStartFalling and onEndFalling
Why do you need these events? What is your goal (describe it as what the player observes)
-
[SOLVED][1.12] Recipes
If your code doesn't change (the java files) then Eclipse doesn't (always) check to see if the resources have changed.
-
(1.12) How do i detect if a player is wearing my modded armor.
That if-statement will never be true, you're comparing an Item with an ItemStack which are completely different types.
-
[1.12] Make a block drop itself when mined by hand
Well. Yes. All blocks behave that way.
-
[1.12] Make a block drop itself when mined by hand
There's a ! there. if (!canHarvestBlock(state.getBlock(), player, world, pos))
-
[SOLVED][1.12] Recipes
You do know that your shaped recipe requires the input sand to be in the center of the 3x3 grid, right? And only that space.
-
Replace with water instead of air
You're unlikely to accomplish this. You would need to store every block position when a block is placed and the location is water, then check that list every time a block is broken, storing the data in per-world storage. It won't be easy.
-
How to Metadata with Blocks / minecraft 1.9.4-1.12+
Metadata in 1.9+ is blockstates. Metadata is just the underlying integer representation. http://mcforge.readthedocs.io/en/latest/blockstates/states/ You will want to combine blocks that have similar functionality (e.g. all colors of wool in Minecraft Vanilla are the same block, but with different metadata) but separated by some "TYPE" aspect (color, material, etc)
-
[1.12] Add custom nbt tags to vanilla mobs.
You still need to attach the capability to the entity
-
[1.11.2] Open gui when right click with my item
If you want your item to open a GUI, why are you checking to see if a TileEntity exists in the world?
-
On Attacked, On attack
LivingHurtEvent is fired when an entity takes damage and includes the source.
-
[1.12] Metadata Blockstates Not Working Properly
Try without the ToString() https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L82
-
[1.10.2] Have block change in crafting recipe but not be consumed.
Container items aren't part of the recipe itself, they're handled by the crafting grid.
-
[1.12] Metadata Blockstates Not Working Properly
Are you using ItemBlock? That's your problem. ItemBlock always places meta-0. You need ItemMultiTexture or your own ItemBlock class. Not sure about the textures off-hand.
-
[1.12] Metadata Blockstates Not Working Properly
Caused by: java.io.FileNotFoundException: expanded:models/item/campfire.json
-
[1.12] Metadata Blockstates Not Working Properly
You haven't registered your proxy as an event handler class.
-
[1.12] Metadata Blockstates Not Working Properly
ModelRegistryEvent is still a client-side event: import net.minecraftforge.client.event.ModelRegistryEvent; Just because it isn't called on the server doesn't mean that the class even exists. Ditto with the ModelLoader class.
-
[1.12] Metadata Blockstates Not Working Properly
Well. At the moment, you're not creating any blocks or items: https://github.com/DragonFerocity/expandedaesthetics/blob/master/src/main/java/com/DragonFerocity/expanded/proxy/ServerProxy.java#L13-L17 But even if you were, you're not registering any renderers for them: https://github.com/DragonFerocity/expandedaesthetics/blob/master/src/main/java/com/DragonFerocity/expanded/proxy/ClientProxy.java#L14 On top of that: what the fuck is this noise? Why do you have 14 functions that all do the same thing? https://github.com/DragonFerocity/expandedaesthetics/blob/master/src/main/java/com/DragonFerocity/expanded/handlers/BlockHandler.java#L1283-L1335 This function is called from nowhere https://github.com/DragonFerocity/expandedaesthetics/blob/master/src/main/java/com/DragonFerocity/expanded/handlers/BlockHandler.java#L1337 This must be in your client proxy: https://github.com/DragonFerocity/expandedaesthetics/blob/master/src/main/java/com/DragonFerocity/expanded/handlers/BlockHandler.java#L1453 You have an unused import that I'm sure you did something naughty with at some point https://github.com/DragonFerocity/expandedaesthetics/blob/master/src/main/java/com/DragonFerocity/expanded/handlers/BlockHandler.java#L17
-
1.10.2 Issues with jar file(SOLVED)
Yep, that. Still not, probably.
-
1.10.2 Issues with jar file(SOLVED)
...yes... Git is a program. GitHub is a remote repository host. Now then (that I'm awake, seriously, I'm not here 24/7). block.getUnlocalizedName().substring(5)? Really? Bad modder, no cookie. new ModelResourceLocation(block.getRegistryName().toString())"inventory",
-
1.10.2 Issues with jar file(SOLVED)
How about uploading everything to github? I don't know how you have your code arranged, I don't know what I might need, I only know what to look for.
-
1.10.2 Issues with jar file(SOLVED)
That one only needs to be all-lower in 1.11, in 1.10 it's fine as it was. That said, you've only posted screenshots. There's no code to accompany your post. I might be a wizard, but I'm not psychic.
IPS spam blocked by CleanTalk.