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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Probably because the random had values used up so it's placing those solo blocks somewhere else.
  2. http://mcforge.readthedocs.io/en/latest/events/intro/
  3. Ok, one, your recipes does dick with NBT data. What you've shown here is that the output stack has the same stack size as one of the input stacks. Two, ModRegistry.items.get() is not a good way to reference your items, it makes your code very stringly typed. Three, if you're overriding a method do to the same thing as the parent class, don't override (cough, canFit(), cough).
  4. This line: worldIn.setBlockState(pos, state, 11)); That last number is a flag. One of the flags (either 1 or 2, I forget which) is responsible for notifying neighbors. You'll want to remove that flag.
  5. Corner rails connect up with nearby rail blocks automatically. If there's two possible orientations, then one is default and the other is only possible when the block is receiving power. These two effects are likely overriding your attempted change. By the way, if you want to know if a block has a given property: if(state.getProperties().containsKey(....))
  6. If a system ever says it can't find a file, but you know it's there, always always always look for typos.
  7. Look close. Also ModelLoader.setCustomModelResourceLocation(item, meta, block.getRegistryName(), variant) is sufficient.
  8. No, that's controlled by the IBlockState implementation. The blockstate file is only used to determine the block's model for rendering. If Minecraft can't load the blockstate file, it will throw several errors, which are they themselves captured and add on another error. Hence multiple "Caused by..." lines. The originator in this case is the missing file. Show a screenshot of the directory in a File Explorer window.
  9. Caused by: java.io.FileNotFoundException: crl:blockstates/colored_redstone_lamp.json
  10. Thanks for the exact name Choonster, I couldn't remember and wasn't in a position to look it up.
  11. setNoPushMobility() prevents pistons from pushing it. If you want your custom material to push players around like water, you need to replicate the behavior found in the Entity classes (it's kind of split) into an entity tick event handler.
  12. You haven't set the block's material to Material.WATER. Without that you don't get any of the standard water behaviors, as they aren't controlled by the block or fluid, but by the Entity class.
  13. There's an event for this, MissingMappingEvent? Something like that. You don't change the registry name at runtime, you just give it the new name and then when the event is fired (which will be fired for any missing mapping) you can hook in go "oh, that name, that's X now" and Forge will update the old stuff to the new.
  14. You don't. You use a container, the container specifies the slots and the gui screen (the super class) uses the supplied container to draw them.
  15. Sure, I get that. I haven't done anything with dynamic text, so I can't offer any insights. For me and what I was trying to do, I actually wanted all of those models so that more could be supplied outside my own mod. One of my companion mods does this: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderfarming/models/item/mold_butcherknife.json Different mod (albeit using the same base library), that has a model and texture for that item without needing to do anything other than supply the recipe for that particular combination. The IRecipe is supplied by the library, but because it's just NBT data, it would be possible for another mod to create the item without using my library.
  16. For reference, here's an example of using ItemMeshDefinition: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/industry/item/ItemCastingMold.java#L80 The item selects between different "states" based on a template item: it gets that template item's name, strips off some unnessessary bits (it uses them elsewhere, so they're still saved), and then looks for an item model based on that name. Those different models then supply a different texture.
  17. In one direction. As Choonster said, the server controls the state of the game and item NBT is considered "state information." So yes, NBT is updated automatically and the server's copy overwrites the client's.
  18. You're not doing anything to get that information into the server list. You're setting a name and address (twice, I might add). But that's it.
  19. Top of the file: version = "XXX" group= "YYY" archivesBaseName = "ZZZ"
  20. It's handled by the gradle compile process.
  21. https://www.khronos.org/opengl/wiki/Primitive#Quads
  22. 3D glow is just achieved by drawing lines using quads.
  23. https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it private ServerData pokeServerData; You never set this to anything.

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.