Everything posted by Draco18s
-
[1.8]Make booleans stay after quitting Minecraft
Your file isn't saved in UTF-8 format.
-
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
return nbt.
-
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Do this:
-
[1.11]Significance of 2.500000277905201E-7D when performing rotation[Solved]
These are not the same thing. 2.5-10 is 0.0001048576 I think you meant 2.5 * 10-10 Also, you probably meant -7, not -10.
-
(SOLVED) [1.11] Changing Texture/Model file on right click?
When are you calling this?
-
[1.8]Make booleans stay after quitting Minecraft
Emphasis on "You are expected to have basic knowledge of Java before posting here."
-
{SOLVED}[1.10.2]Updating Blockstate on neighbor Change problem
I'm not sure then. My own TE-valued-states work just fine.
-
[Forge 1.11] Rendering Irregular Block
Exception loading model for variant variety:beach_turtle_shell#normal for blockstate "variety:beach_turtle_shell" Caused by: com.google.gson.JsonParseException: 'from' specifier exceeds the allowed boundaries: Vector3f[2.0, -24.0, 1.0]
-
{SOLVED}[1.10.2]Updating Blockstate on neighbor Change problem
Did I tell you to wrap it in an if(worldObj.isRemote) check?
-
{SOLVED}[1.10.2]Updating Blockstate on neighbor Change problem
No. getState just does this: private IBlockState getState() { return worldObj.getBlockState(pos); } I did it as sort of a replacement for 1.7's getMetadata() method. You don't really need it as long as you in-line its functionality.
-
[SOLVED!][1.10.2] Items in slot won't save to NBT?
You need to change your container and guicontainer as well. Instead of taking an IInventory, take in your TE. Then for slots, instead of new Slot you want new SlotItemHandler . e.g. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/inventory/ContainerSifter.java (SlotDust is a custom slot class that extends SlotItemHandler)
-
[Forge 1.11] Rendering Irregular Block
Do you have an "inventory" variant in your blockstate file?
-
[1.10.2] Reliable way to tell if a remote server has my mod installed...
No, it's easy. When the client connects to the server, the server side of your code sends a packet to that client. If the server side isn't installed guess what.
-
(SOLVED) [1.11] Changing Texture/Model file on right click?
You shouldn't be using the ModelMesher anyway, that method has been outdated for a while. Make sure you're calling ModelLoader.setCustomModelResourceLocation during the ModelRegistryEvent (preferred 1.11 way, although I think during PreInit still works).
-
{SOLVED}[1.10.2]Updating Blockstate on neighbor Change problem
I don't know why you're calling requiresUpdates(). It doesn't do anything: public boolean requiresUpdates() { return true; } You need to call these, from your TE, so that the TE data is synced back to the client and the block is re-rendered: worldObj.markBlockRangeForRenderUpdate(pos, pos); worldObj.notifyBlockUpdate(pos, getState(), getState(), 3); worldObj.scheduleBlockUpdate(pos,this.getBlockType(),0,0); markDirty();
- [1.11] Dragon Dying FX.
-
[1.11] Detecting a Structure near a TE.
That if statement will detect if that side is properly constructed. You'll need a boolean and set the boolean to false if a side fails. Or you can use a counter to count successes and check if successes == 4.
-
[1.11] Detecting a Structure near a TE.
Loop over the EnumFacing horizontal values. That's the "facing" in my code above.
-
[1.11] Detecting a Structure near a TE.
pos.offset(facing).up()?
-
[1.8]Make booleans stay after quitting Minecraft
- How do i find the lowest log of every tree on generation
Correct.- [1.11.2] Crash in minecraft
He'd marked it in his OP. giveItem = addButton(new GuiButton(11, gui.width / 2 + 5, 187, 150, 20, "Give Items: OFF"), buttonList); LINE 101 But I don't see what could be null on that line.- 1.10.2 Disabling lake generation in custom biome
Uh huh. What did you expect to happen when you used BBCode inside a post? You should have used [nobbc] and previewed it first.- [SOLVED!][1.10.2] Items in slot won't save to NBT?
Don't use IInventory, use Capabilities. Namely the ItemStackHandler capability.- [1.11] World Capabilities.
Point. That's what I get for not having Eclipse open. - How do i find the lowest log of every tree on generation
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.