Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BURN447

Members
  • Joined

  • Last visited

Everything posted by BURN447

  1. I'm attempting to check if there is a certain potion in a slot of my inventory. I know I need to use nbt, but how can I read the effect that the potion has?
  2. I'm actually trying to send a packet from the client that a button was clicked, and if so, start a process on the server, which would then set the variable on both ends back to false until the button is clicked again. But this is starting to make sense, and I think I might be able to figure it out. I'm thinking that I'd use pkt.readInt and then send one back setting the variable back to false.
  3. How would I interpret what is happening in the tileEntity itself? I'm assuming it has to do with the onDataPacket function
  4. This shows me how to create the bare bones implementation, but there isn't anything pertaining to how to use it in the slightest, or if there is, it doesn't make any sense to me, at least to a tileEntity, because I can see how to send something to a server, but I can't tell how to read it or even receive it.
  5. How would I go about interfacing between a button clicked between my GUI and Tile entity? I know it has to do with Packets, but I'm not sure how to send/receive those packets on either end.
  6. I'm not 100% sure what to do here, but I'm attempting to edit a value within my Capability Factory during runtime. However that change does not seem to be reflected in anything while running or after the game. I'm sure that the methods for both setting and getting destroySpeed are getting called. Edit: I fixed it by changing some variables around. Code will be attached, but I'm not 100% sure what fixed it https://github.com/BURN447/DartcraftReloaded
  7. Thanks! I got it working. Had to rework my factory, but got it working!
  8. So does it just return a new instance of my capability interface, capability implementation, provider or storage? There really isn't any resources available for me to look at regarding this, at least that I've been able to find because it all ends up pointing towards older tutorials.
  9. I'm attempting to register my custom capability, but the CapabilityHander.INSTANCE.register() function seems to be deprecated, and I need a factory to use the non deprecated version. I haven't been able to find any good documentation on how to create a factory for this purpose. Is there any resources or Factories already created that would show me how I would implement this?
  10. Thanks for the help. I believe I have an understanding of what's happening
  11. I'm not sure what's happening, but my TileEntity is not calling the readFromNBT or writeToNBT functions. My best guess is that I have it registered incorrectly, but I'm not sure where or how to correct it. https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/tileEntity/TileEntityInfuser.java edit: I'm honestly not 100% sure why it works now, but it does. I ended up implementing ITileEntityProvider in my TileEntityInfuser class and returned a new TileEntityInfuser in the createNewTileEntity
  12. How would I go about overriding something in initCapabilities?
  13. https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/Items/Tools/ItemForcePickaxe.java This is my Current tool class. I am overriding the methods, but when there is a specific tag, probably NBT, I'm trying to change the efficiency value. I'm also getting a stack using getStackInSlot, which gives me an itemstack, and if it belongs to my mod, it's supposed to add a modifier
  14. I hadn't seen that comment, but where would I override those methods? Would I be declaring a new Instance of the item in the Capabilities class and then passing in the stack?
  15. If I was trying to change the efficiency of a tool, there is a base value in the Item class. for an individual ItemStack, what is the accepted way to edit the speed of a tool. I haven't been able to find any resources online
  16. Can you post a full text log, sometimes Minecraft likes to throw errors in other parts, not just the last few lines of the log
  17. I'm creating a modifier system to tools, which I've mentioned a few times here, and I'm trying to edit some of these values. However, due to passing in an ItemStack, I cannot figure out how to cast it into the type of Item that I can modify. How would I go about modifying these values in my capability. One theory I've had is declaring those variables in the capability and then setting the defaults in the ItemClass, but I'm not 100% sure how to do that.
  18. Thanks for the new link, I haven't seen this one yet. Hopefully I'll be able to understand how to use it a little more
  19. I was gathering that much, but I'm not sure how to edit the efficiency of a tool or such through the itemstack
  20. Item.getItemFrom block worked perfectly for my situation. I just had to check if a couple items were present in slots, and if they were specific items. Everything seems to be working with it now.
  21. Looking at that log, there is nothing wrong with it. Give it some more time or post a full log on pastebin.com
  22. So I'm making a modifier system, where I will be able to apply modifiers to tools. I'm trying to decide whether to do it using the enchantment system or modifying internal values. I've got a basic start with modifying base values, but because it is handled on a case by case basis, I can't get it all quite working using itemstacks vs Items. If anyone has any advice or idea on direction, I'd love to hear them.
  23. I've been scouring the internet for this, but I can't seem to have much luck. I'm looking for a way to get the Item from a block so I can compare them in an inventory, but I haven't been having any luck. Is there any way to do this?
  24. I have created a custom tile entity, however, when I right-click to open the GUI while holding any block, it will place the block. Is there a certain function I should be calling in the constructor or something that I need to implement myself?
  25. BURN447 replied to BURN447's topic in Modder Support
    Thank you! That looks like exactly what I was looking for

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.