Everything posted by Draco18s
-
[1.10.2][SOLVED]Exception loading model [model] with loader Variant
Post the WHOLE error. The first line about missing variants is a generic problem that's caused by one of several other errors, such as FileNotFound. Also, your blockstate.json does not contain an "inventory" variant, which would be used for--you guessed it--items.
-
[1.11] Detecting TEs that are not horizontal / vertical from the orginal
That entirely depends on what you're trying to do. Right now you're searching a 7x7x7 cube centered on this block. Facing values would search only the 6 directly adjacent blocks.
-
(1.11)(SOLVED)ItemBlock Models Acting Strangely
For situations like this, Minecraft should log an error loading the model/texture. Please provide that info.
-
[1.10.2] Model acting different depending on dimension
That's called z-fighting and that is not what is happening here.
-
Rotating A Block's Texture
Yes, but you can't rotate the texture based on block state. It's baked in.
-
Rotating A Block's Texture
You can't.
-
Rotating A Block's Texture
Change uvlock to false, now model rotation will also rotate texture.
-
Get blocks of a chunk upon loading
The teletype tag, tt. This is some inline code.
-
[1.8]Make booleans stay after quitting Minecraft
Property prop = config.get(...) boolean b = prop.getBoolean(); //do stuff prop.set(b); config.save(); Jesus H Christ. I can't believe I had to spell that out.
-
[SOLVED] [1.10.2] Proper TileEntity rendering
Gets the light value at the block coordinates the TE is at, in a combined manner: i << 20 | j << 4 where i is SkyLight and j is BlockLight. "15728640" is just a "if the actual block light is less than this value, use this value" value. This means that regardless of the total light in the space, this value will be used pretty much guaranteed (as 15728640 is definitely more than 15). Because of the way the math works, you may as well replace the function call with the value 15728640 (and ignore all lighting). Which you could then divide and modulo by 65536 yourself. (...wasn't that the whole point? To ignore lighting conditions?)
-
[SOLVED] [1.10.2] Proper TileEntity rendering
Gets the light value at the block coordinates the TE is at, in a combined manner: i << 20 | j << 4 where i is SkyLight and j is BlockLight. "15728640" is just a "if the actual block light is less than this value, use this value" value. This means that regardless of the total light in the space, this value will be used pretty much guaranteed (as 15728640 is definitely more than 15). Because of the way the math works, you may as well replace the function call with the value 15728655 (and ignore all lighting). Which you could then divide and modulo by 65536 yourself. (...wasn't that the whole point? To ignore lighting conditions?)
-
[1.8]Make booleans stay after quitting Minecraft
...You don't know how to invoke methods and create variable references inside a button?
-
(Solved!) How should I make custom TNT?
In Eclipse, under the Package Explorer, there should be a "folder" called Referenced Libraries (there might not be, in which case skip this). Inside that will be a file called "forgeSrc-[mc version]-[forge version].jar" You will be able to open up that jar file and brows the MC source code. TNT will be down under: - net.minecraft.blocks - net.minecraft.entities
-
(Solved!) How should I make custom TNT?
You can't. Literally.
-
[1.11] Detecting TEs that are not horizontal / vertical from the orginal
world.getTileEntity(pos) Magic.
-
json not working 1.10.2
Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
-
[1.11] Detecting TEs that are not horizontal / vertical from the orginal
Or getAllInBox(pos.add(-1,-1,-1), pos.add(1,1,1);
-
[1.11] Detecting TEs that are not horizontal / vertical from the orginal
BlockPos.getAllInBox(from, to)
-
[1.8] Error when trying to get Player's Ping
(you know....because they don't exist/aren't connected to a server...)
-
1 slot inventory crashing in 1.11
inventory.deserializeNBT((NBTTagCompound) compound.getTag("inventory")); Also, I recommend naming your nbt tag with your mod ID.
-
1 slot inventory crashing in 1.11
You will need to call ItemStackHandler#serializeNBT() and ItemStackHandler#deserializeNBT() yourself.
-
[SOLVED] [1.10.2] Proper TileEntity rendering
And even if you do need a TESR, don't do Minecraft.getMinecraft().getTextureManager() a lot. Save the reference to a variable and that'll clean up your code A LOT.
-
[1.11] Replacing texture of block
This will be very tricky with block models. But you'd have to store the block being used inside a (non-ticking) TE to start with. From there you should be able to write a BakedModel implementation that returns the baked quads for the saved block, or at the very least, quads using the same texture.
-
Creative Tab 1.11
You forgot the "new" keyword.
-
Searching right event to suscribe to.
Do that in the onBlockPlaced method. If the placement is invalid, drop the block as an item and set the space to air.
IPS spam blocked by CleanTalk.