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.

Luis_ST

Members
  • Joined

  • Last visited

Everything posted by Luis_ST

  1. you never use your static field COPPER_ORE, it is still null in BiomeLoadingEvent
  2. why on earth are you creating a ResourceKey in BiomeLoadingEvent, you should use the Name you get from the Event and the Location of the ResourceKey (you can get it from ResourceKey#location) instead also is your FMLCommonSetupEvent fierd?
  3. forge use in 1.17 mojang mappings for classes and the packages, the entity package has been moved into the world package
  4. show more of your code 1 line doesn't help, since this line looks good for me also do you know basic java since the error should says whats wrong
  5. yes since BiomeManager#addAdditionalOverworldBiomes requierd that the Biome is registerd via the RegistryEvent or DeferredRegister yes and yes
  6. if you add the Biomes via json you need only need a ResourceKey if you want to add the Biome to the Overworld you still need a RegistryObject for more information about how to create a json Biome you can look here
  7. you need to use BiomeLoadingEvent to add custom features to Biomes if you not use json Biomes, since Features are registered after to Biomes
  8. post screenshots of the mods folder form server and client
  9. you use the correct way to register CF, the code you post looks also okay can you post the the full debug log and the code where you add the CF to your custom Biome
  10. yes, i would also recommend you to follow the Java Naming Conventions
  11. post the full log, not only the stacktrace
  12. you need to check if the World is an instance of ServerWorld first the you can cast the World like vanilla
  13. First of all do never use @OnlyIn since it is only for vanilla, second since you are creating a skeleton you can look at the vanilla skeleton renderer
  14. this question is completely irrelevant, you could simply test it if it works it is done, if it doesn't work it's not done
  15. the ItemInHandLayer is called in 1.16.5 HeldItemLayer, everything else should be the same
  16. use LightningBolt#setVisualOnly with parm true, this will stop the LightningBolt for damage Entities and place Fire, after that you need to call the damge function manualy, something like: List<Entity> entities = lightningBolt.level.getEntities(this, new AABB(this.getX() - 3.0D, this.getY() - 3.0D, this.getZ() - 3.0D, this.getX() + 3.0D, this.getY() + 6.0D + 3.0D, this.getZ() + 3.0D), Entity::isAlive); for(Entity entity : entities) { if (!net.minecraftforge.event.ForgeEventFactory.onEntityStruckByLightning(entity, this)) entity.thunderHit((ServerLevel)lightningBolt.level, this); } }
  17. nop its for 1.17.1 but if you want to use this for 1.16.5, you need to search in your IDE for the class since it can be that the class name I gave you above is different (since 1.17 use mojang class names)

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.