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.

Empty2k12

Members
  • Joined

  • Last visited

  1. Let me elaborate for future readers why this is happening: Computers don't know the principle of transparency. All they do is taking the color for every single point and merging it with the color of the transparent object by a rate of transparency (from 0%(invisible) to 100%(not transparent)). That way transparent objects have to be sortedfrom back to front line. When rendering a object and another behind it it already set the color of the first one so the second does not show up. Fiddling with GL_DEPTH_TEST is dangerous. Better find out the object positions then sort them. I hope that helped
  2. My machine can customize Hive Frames... Depending on which Modifier I put in the Modifier slots it sets the value for production to the number of modifiers. In that "craft" process all slots in the inventory get wiped and I create a new Item (dfferent from the ones I deleted) and try to set the values I got via nbt, so that that Item is now in the output slots with the values set (visible via tooltip). My problem is that the Item I create (by doing ItemStack output = new ItemStack(Skybees.editedFrame) does not take the nbt data I pass and does not show them in the tooltip.
  3. @diesieben07 When i Spawn in my Item it does not have the upgrades. Now I am searching for a way to set the values which are passed via the NBT-Data I hope this was understandable Have a nice day!
  4. Isnt that what I did here? ItemStack output = new ItemStack(Skybees.editedFrame); NBTTagCompound tag = output.getTagCompound(); if (tag == null) { tag = new NBTTagCompound(); output.setTagCompound(tag); } tag.setFloat("floweringModifer", flowering); tag.setFloat("lifespanModifer", lifespan); tag.setFloat("mutationModifier", mutation); tag.setFloat("territoryModifer", production); tag.setFloat("productionModifer", territory);
  5. Thanks for your fast reply! How would I pass on the values to my item when I spawn it in? This method I am using worked till now... Thanks and have nice day!
  6. Hey everyone, I created a block which can modify items. I have one input, one output an 4 modifier slots. When all the conditions are given I delete all slots and set the output slot to my output item with my modified values. The modified values are read correct(I send them to chat for debug) but the item doesnt get the values. I think the problem is in the onCreated method of my item. It is created before the NBT values are set. My Files: EditedFrame: The craft() method of my tilentity Thank you for helping an have a nice day!

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.