Jump to content

Tenth

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Tenth

  1. I have a Jade Plugin for my mod using this component provider that should get my block entity's "progress" and display a % based on that. Only problem is, SteamBenderEntity#getProgress() always returns 0. My best guess is that I need packets but I don't know how to return a value from them. Any help would be amazing, thank you.
  2. I'm embarrassed it was something so obvious, thanks for the help.
  3. I'm making a tech mod which will have several machines with a circuit slot (like GregTech) which is controlled by an int called circuitNumber which is apart of a ContainerData variable in the BlockEntity. This int will control the amount of an ItemStack in a slot of my custom circuit item. I tried modifying the data through the passed-in blockEntity in the menu class. (The #setCircuit and #getCircuit functions just used ContainerData#set and ContainerData#get using the passed-in ContainerData in the menu class) No dice, the data never gets changed. I then tried to make a packed called CircuitSyncC2SPacket which would tell the server to modify the data using a function in the BlockEntity class. Zilch, no effect whatsoever. I couldn't find anything when searching for this online, and the one I did was from 2013 that said to use Packets. If this is the solution, then I must be doing something wrong. Any help would be appreciated, thank you. The project's GitHub.
  4. I put breakpoints everywhere and couldn't discern the issue. Then... I realized that I used the wrong #getCapability method in both BlockEntity classes. 🤦‍♂️Never realized there were two of them, but yeah I needed to use the one accepting a Capability and Direction and not the one only accepting a Capability. Thanks for the help.
  5. Both blocks are using #newBlockEntity and pointing to their respective block entity classes, so I'm a little confused as to why that would be.
  6. I have two BlockEntities, SteamBoiler and SlightlyBiggerChest SteamBoiler should be able to have Steam piped in and out. SlightlyBiggerChest is a Beta styled chest that should be able to have items inputted and extracted. Problem is, Hoppers aren't interfacing with SlightlyBiggerChest, and pipes (from Mekanism) aren't interfacing with SteamBoiler. Entity Classes: SlightlyBiggerChestEntity, SteamBoilerEntity. GitHub: Factory Any help is appreciated. Thank you.
×
×
  • Create New...

Important Information

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