Everything posted by Draco18s
-
Recipe Help
"OreDictionary.WILDCARD_VALUE" is a string, not a number, and it can't be parsed as a number. Duh. You either need need to use "forge:ore_shapeless" as your recipe type or use "data": 32767
-
How can I spawn in entities with a 2D model like this mod?
Which part are you having trouble with? Displaying a 2D sprite as a visual model? or Finding all nearby entities? (the aura)
-
[SOLVED] Can't launch the game
This is where the code thinks it exists at. When you compile, this is where it's put. Just because the file is located in a different place does not mean anything. Java likes to have the file structure match the package structure, but the two do not have a hard relationship. (Eclipse, and any other decent IDE, should be throwing a warning or error on this line and you should fix it)
-
Lag spike every 1 second when custom rendering
What is this? Why are you creating a new one every frame?
-
onBlockPlaced ReplaceBlockWithBlock
7. Cancel the event 8. Reduce the used item stack's size
-
Recipe Help
So close. So very close. How is this supposed to return the same item with 1 more damage? You never pass in the original item stack so how do you know what the damage is? This is pointless. getContainerItem isn't called unless hasContainerItem returns true already. Oh look, the original item stack. Call damageItem() on it and return it (though you should probably clone it first...).
-
Recipe Help
- Recipe Help
"Broken_Saw" and "Ingot_Saw" are two different items, yes? They're different instances of the class, you can distinguish them. Or are they the same instance, with different damage? You can still distinguish them. In either case, storing the return of the default implementation of hasContainerItem (return false) in the class is never ever going to do what you want.- Recipe Help
Absolutely not. You need to override hasContainerItem and getContainerItem in your Saw class.- Recipe Help
Milk Buckets use the Container Item functionality. That should work for most recipes.- 1.12 lang file entries for multi state blocks
That's the only way to supply a different unlocalized name for each metadata of the item stack.- 1.12 lang file entries for multi state blocks
Custom ItemBlock classes.- minecraft forge server not starting
No it doesn't. Yes, Forge is installed. No, Forge is not what crashed. Even so, you should have posted in Support and Bug Reports. Not the section under "Mod Developer Central" You ran out of memory. Allocate more.- minecraft forge server not starting
Your in the wrong place. This forum is where people who are making mods come for help making mods. That said: Either: You are trying to load a client side mod on the server This mod is badly written and you should report it to the author- onBlockPlaced ReplaceBlockWithBlock
I think he's looking for a way to detect the player replacing a block of water with a block of dirt.- World Generation 1.12
Cascading chunk gen happens when you attempt to place blocks into a neighboring chunk that hasn't been created yet. Vanilla avoids this by offsetting the generation by +8 and +8 (as the neighboring positive X and Z chunks are guaranteed to already exist, and won't cause them to get generated)- [1.12.2] Game crashes when launching with the minecraft launcher but not in eclipse
And this is why I thought there was a 3 character minimum, but I've already had that conversation with Lex.- [1.12.2] Items With Inventory
Capabilities- [1.12.2] Biome and Dimension tutorials
Don't use AT when you can use Reflection. Reflection is cleaner.- 1.12.2 register block with multiple states
Correct. And this is why I have my registry code done up the way I have. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L64-L71 I search for all valid states of the block (note that this method is not good for things like leaves which have states that don't appear in the inventory) and register an item model for each.- [1.12.2][SOLVED!] Capabilities and networking
You might be right. I haven't actually played in a while.- 1.12.2 register block with multiple states
No, it does not. Because item models aren't block models. They are registered separately. You want your item variants to have textures? Register your item variants to have textures. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L100-L103- AI Error
this.targetTasks.addTask(4, new EntityInfestedEnderman.AIInfestEndermanAttack(this)); Just because it's a static class doesn't mean you don't call new.- [1.12.2][SOLVED!] Capabilities and networking
Isn't CTRL the key used to sneak? Check if the player is sneaking.- Efficiency with block drops
Redstone materials break instantly, yes. They bypass the hardness check. - Recipe Help
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.