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. You'll have to examine the EntityWolf class to see how it does it.
  2. EXP only drops if mobs are killed by the player.
  3. The class implements it. setCustomStateMapper registers it. But yes.
  4. You are correct. I was looking for something that wasn't there, but which didn't need to be either.
  5. You haven't told the game what states your block has, so you've tried to set a state the blockstatecontainer doesn't know about and is therefor invalid. (You're missing a method that you need to override)
  6. I'm at a loss. You call super for the methods you've overridden and you haven't overridden onUpdate... Nope, no idea.
  7. Whoops. Still. You had this: ModelLoader.setCustomStateMapper(Modblocks.grill, null); Which was still not creating an instance of your custom IStateMapper.
  8. It hasn't changed much.
  9. If you tell it to use the default state mapper and not your own implementation, of course it's going to keep looking. ModelLoader.setCustomStateMapper(Modblocks.megatnt, (new StateMap.Builder()).ignore(new IProperty[] {BlockMegaTNT.EXPLODE}).build());
  10. An IStateMapper implementation. Here's one of mine.
  11. Show your entity class. You fucked something up there, not in the replacement.
  12. It is a tag that prevents BBcode inside it from being parsed. Watch. [nobbc]This sentence is rendered as is[/nobbc]
  13. Cough. [nobbc][nobbc][/nobbc] is a thing, guys.
  14. Again, read your errors. Caused by: java.lang.RuntimeException: StructureStart "orangeVillager61.ImprovedVillagers.generation.IvMapGenVillage$Start" missing ID Mapping, Modder see MapGenStructureIO
  15. The fuck are you doing? IvMapGenVillage newGen = (IvMapGenVillage) event.getNewGen(); System.out.println("Genning 2"); event.setNewGen(newGen); NO. JESUS CHRIST NO. CREATE A NEW GENERATOR, DON'T GET IT FROM THE EVENT. FUCK.
  16. I also have an example of that here with model registration here and I think this class was used somewhere along the way as well.
  17. 1) Yes. You do it via the blockstate file. 2) I don't know 3) OBJ models.
  18. Change: if (true) { To: if(world.getBlockState(new BlockPos(this.posX, this.posY, this.posZ)).getMaterial() == Material.AIR) { And you can create one blockpos for the if-statement and the next line (the setBlock) as well. And maybe you'll want a loop that checks a range of blocks.
  19. I tend to grab the MCPBot exports that match the Forge version I have and keep them locally with my project. Lets me reference them regularly very quickly.
  20. So, IItemPropertyGetter gives you the following (client side) method: public float apply(ItemStack stack, @Nullable World world, @Nullable EntityLivingBase entityIn) Which includes the ItemStack, and presumably its NBT tags. It must return a single floating point number, which is tied to a single "property name" (e.g. "Time" which is what the clock uses). The Item's json file then must have these states in sequential order because minecraft goes "Ok, I need 12.9845" and starts at the top and looks for the first value that's larger than the IItemPropertyGetter's returned value and uses that "variant." I discovered this by accident when trying to do something weird. You can see an example implementation of my own here (using world information, not NBT): https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/farming/item/ItemThermometer.java#L53 https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderfarming/models/item/thermometer.json Where each one of those specified models is a normal, standard, item model file (which can point to a block, just like any other block item model file). https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderfarming/models/item/temp_05.json
  21. By the way, "3.0" there isn't any different than "1.0" The number is the "probability that the furnace will drop 1 experience per item smelted." A value greater than 1 is treated as 1.
  22. Because vanilla ore blocks drop themselves, which is handled by the super class, Block
  23. Has the OP posted readable code? No?

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.