Everything posted by Draco18s
-
1.12.2 register block with multiple states
You still need to register their models with the ModelLoader
-
1.12.2 register block with multiple states
Huh. That's weird. Mine doesn't.
-
1.12.2 register block with multiple states
You are not doing this.
-
1.12.2 register block with multiple states
Alphabet Soup much? And as far as I can tell, you still haven't done this:
-
Request: Forge 10.13.4.1614 Src
Pretty much no.
-
1.12.2 register block with multiple states
Just because you said "this item with this meta exists" does not mean that your block actually has different states. If you really, really wanted to, you could give yourself minecraft:grass with metadata 4. Its not any different than with metadata 0. You need to... - override createBlockState - override getStateFromMeta - override getMetaFromState - call setDefaultState in the block's constructor - use a subclass of ItemBlock that overrides getMetadata (vanilla does provide some implementations, they may or may not work for your purposes) - register that ItemBlock subclass with your block's registry name instead of using new ItemBlock()
-
[Solved] Cascading chunk-load in IWorldGenerator
Probably not. But I haven't dug into how that treats chunk borders.
-
[1.8] Scheduler forge api ? task...
Would you please stop making your text so huge? And you should not be using loops, at all.
-
[Solved] Cascading chunk-load in IWorldGenerator
Good news! You're wrong! Cascading chunk gen is when you--during a world gen action such as ore placement, structure placement, etc--cause a new chunk to be generated.
-
Efficiency with block drops
The efficiency enchantment is automatic. You don't need to do anything. setHardness() perhaps?
-
Efficiency with block drops
Try maybe using the version of quantityDropped that passes in an int fortune parameter?
-
Item Drop from Block
Jesus Christ YOU NEED TO OVERRIDE THE CORRECT METHOD FROM THE BLOCK CLASS.
-
[UNSOLVED] [CLOSED] [1.12.2] Recipes for CustomTileEntity
SlotItemHandler
-
[UNSOLVED] [CLOSED] [1.12.2] Recipes for CustomTileEntity
You need to create a class that can: - track what "recipes" your machine knows - identify what recipe is currently in the machine - retrieve the output from that recipe
-
Item Drop from Block
That would be "your method signature is wrong" as I said.
-
Item Drop from Block
Put @override on the method you are overriding. If Eclipse says "this isn't overriding anything" then you have the wrong method signature. The fix is not to remove the annotation, but to fix the method signature so it DOES override something. As for Item.getItemFromBlock(this);, that will make the block drop itself. If you want it to drop a different thing, you tell it to drop a different thing. ItemInit.MIX_REDSTONE_GLOWSTONE sounds like your custom drop, so use that.
-
How to compile a mod in 1.12.2
gradlew build
-
Item Drop from Block
You probably want to override another method. One that says "this is the item that's dropped." Like how Glowstone and Redstone Ore do.
-
[1.8] Scheduler forge api ? task...
Ok, great, and what is your problem now?
-
[Forge 1.12.2] Dot product between vectors keep decreasing when the player's vector is near the entity's vetor
Dot product is not the correct tool here. You want it within range, use a distance check.
-
Item Map NBT data
The data exists, but you're using an external program to examine the player's inventory and can't see it. You need to write the code to extract it.
-
Item Map NBT data
No, that's the item itself. As evidenced by: - a tag called "tag" - a byte called "slot" - a byte called "count" - a child entry in a list called "Inventory" And most blatantly obvious of all: - a string called "id" with a value of "minecraft:filled_map" The tag "tag" is the data you're after, and that NBT visualizer cannot for some reason show you the data you want. Also: Holy shit, you actually thought "5 entries" was the name of the tag.
-
Item Map NBT data
-
Item Map NBT data
getTagList is just one of the many types of tag that an NBT can contain. As for "what you put here" (which is spelled "H-E-R-E" because "hear" is what you do with your ears)...
-
Item Map NBT data
Step 1: Get the map's item stack Step 2: Read the stack's NBT
IPS spam blocked by CleanTalk.