Everything posted by Draco18s
-
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
You do fucking nothing with it. The method call already exists. You do NOTHING to make that happen. When the player right clicks, then that method will run. You're done. That's it. Well you aren't using a TE in your gui, so don't get the TE from the world, don't pass the TE to the gui, do nothing with TEs.
-
[1.11]Significance of 2.500000277905201E-7D when performing rotation[Solved]
5.6↑↑3 is only about 1 * 1024 (It's less now that I plug it into a calculator, but I was working backwards and just wanted something close; 5.65 is better)
-
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
You still don't call the method yourself. You need to override the method so that it does what you want when called.
-
[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI
Why are you calling onItemRightClick yourself?
-
[1.11]Significance of 2.500000277905201E-7D when performing rotation[Solved]
I'm mostly teasing. I made that post right after having a conversation involving Knuth's Up-Arrow Notation and an idle/clicker game. (And the number 5.6↑↑3)
-
[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
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.