Jump to content

hijackster99

Members
  • Posts

    8
  • Joined

  • Last visited

hijackster99's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I am attempting to make a fluid for my mod in 1.16.4, but I cannot find any help online for how this is done. I have tried looking at how other mods do it and so far I have a Fluid class, a Fluid Block class, and a Bucket class. So far my fluid seems to exist in some capacity, but the bucket doesn't work, and when I try setblock, it does not work with the fluid block, but it does work with the still version of the fluid, except the fluid state still shows as empty, it just now has the falling boolean property. At this point I am pretty much stuck. I assume I am missing something (probably obvious), but I can't figure out what it is. Fluid class: https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/blocks/VoidGas.java Fluid Block class: https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/blocks/VoidGasBlock.java Bucket class: https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/items/VoidGasBucket.java Main class with registries: https://github.com/hijackster99/Ancient-Relics-1.16/blob/master/src/main/java/com/hijackster99/ancientrelics/core/ARBase.java
  2. Ok. SO i have it working. I used the getUpdateTag and handleUpdateTag methods to sync when the block is initially loaded, but I found that I still needed to use the packet handler for when the slot contents changed as it did not seem that I was able to call the getUpdateTag method manually and have it just work.
  3. I am not sure I 100% understand what is going on, but, I think I am supposed to send the update information in getUpdatePacket, which is recieved on client by onDataPacket, and handle updates that way. For clarity, is getUpdatePacket only called on the server then? And should I replace all of my existing packet things with this system? Thanks again.
  4. I have a tile entity with a custom render that renders the item stored in the tile entity above the tile entity. The render works great, but I have a problem when I read from nbt, the item does not render until the slot is updated. I believe this is because I only send packets when onContentsChanged is called, and in addition to that, only when the worldObj is defined. when the read nbt function is called the world is not yet defined, so I need to somehow, schedule some kind of an update for later, when the world obj is defined. I know I could do this if the tile entity ticked, but I don't really want to make the tile entity tick just for this. tile entity class: https://github.com/hijackster99/Ancient-Relics/blob/master/src/main/java/com/hijackster99/tileentities/TileEntityPedestal.java main class: https://github.com/hijackster99/Ancient-Relics/blob/master/src/main/java/com/hijackster99/core/ARBase.java TER: https://github.com/hijackster99/Ancient-Relics/blob/master/src/main/java/com/hijackster99/tileentities/renderer/PedestalTER.java Packet Handler: https://github.com/hijackster99/Ancient-Relics/blob/master/src/main/java/com/hijackster99/core/ARPacketHandler.java
  5. Changing the constructor to call the other constructor worked. Thank you!
  6. I went through and the only instance of IInventory I could find was in my addPlayerSlots which I changed to PlayerInventory, but that didn't seem to help
  7. I am working on tile entity to store items, and so far I have it setup to open a GUI on right click, and I have code for adding a slot to the container, but it does not add the slot and I am not sure why, it looks ok to me so I am not sure what is wrong Container Class: https://github.com/hijackster99/Ancient-Relics/blob/master/src/main/java/com/hijackster99/blocks/containers/PedestalContainer.java TileEntity Class: https://github.com/hijackster99/Ancient-Relics/blob/master/src/main/java/com/hijackster99/tileentities/TileEntityPedestal.java Main Class: https://github.com/hijackster99/Ancient-Relics/blob/master/src/main/java/com/hijackster99/core/ARBase.java https://github.com/hijackster99/Ancient-Relics/ Thanks for the help!
  8. So I have Forge setup, it will launch the game and everything, but it will not detect my mod. pack.mcmeta: https://github.com/hijackster99/Minecraft-Terraria/blob/Jack/src/main/resources/pack.mcmeta mods.toml: https://github.com/hijackster99/Minecraft-Terraria/blob/Jack/src/main/resources/META-INF/mods.toml base class: https://github.com/hijackster99/Minecraft-Terraria/blob/Jack/src/main/java/aaMod/core/AAMod.java As far as I can tell all of these files are setup correctly, so I have no idea what is going wrong here. Thank you
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.