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. the base Entity is still a Player I think you can simply copy the vanilla ItemInHandLayer code, it will render a the item at the normal position (which is the player hand) then you need to move the x, y and z position to the position you want
  2. read the java doc of String#split, if you want to split a String at a dot you need to use "\\."
  3. only primitive values are supported (int, double, float, enum, ...) this also include Strings, if you want to use other values you need to store them in a String or a enum, e.g. minecraft:stone is the RegistryName of the Stone block you can store the name (as String) in the config then you can create a ResourceLocation from a String a then you can get the Block
  4. look into the vanilla code how they render the name above a player
  5. did you look at the vanilla code?
  6. the RenderSytem class has the method enableAlphaTest and disableAlphaTest use them. if this is not what you want, explain what exactly you are looking for
  7. you can look into this package of my mod it's an test Dimension (the ChunkGenerator and the BiomeSource), note that the buildSurfaceAndBedrock method in the ChunkGenerator is not implemented correctly
  8. look into the RenderSystem class
  9. again do not use @OnlyIn, I'm unfortunately not able to read your code because I'm on my mobile (and the code feature look very strange), I will look at your question again when I'm back on PC😅
  10. a custom ChunkGenerator allows you to modify the Level generation, the ChunkGenerator will create the Bedrock, the Ground and the Surface of your custom Dimension. the goal you have is also possible without multiple Biomes. you also need a NoiseGenerator (I would prefer the SimplexNoiseGenerator), they create normally a value between -1.0 and 1.0. look at the vanilla NoiseChunkGenerator at the method buildSurfaceAndBedrock and try to understand how the NoiseGenerator works. for your Dimension you will need two NoiseGenerator one for the Terrain and one for the "Mountains" then check wherever the MountainNoise is larger than a value (e.g. 0.8) you scale the SurfaceNoise. you need to test a bit for the best result. iirc this is the best way to do this
  11. stop doing that, you should always register all items. if you want to disable items remove them from the creative tab and disable the crafting
  12. which version did you use?
  13. did you use a custom ChunkGenerator? I think the best way to create a surface like this would be to use different Biomes
  14. that's correct but the model is stored in the LivingEntityRenderer, and this is OOP also do never use @OnlyIn, and if you want to use your code above I think you need to render the EntityModel manually that's because the Slime dosen't have the ArmorLayer and ItemHandLayer you need to add a custom Layer to the EntityRenderer or you disable the rendering of Armor and hold items
  15. is your mod installed on server?
  16. take a look at this tutorial, it has a up to date git repo
  17. screach for the question in the forum, this question has answered many times ago
  18. a moded armor or a vanilla armor
  19. this is basic java but can simply add befor the ServerPlayer instance: () ->
  20. 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  21. then I'm at the end of my knowledge, sorry
  22. yes everything with @OnlyIn(Dist.CLIENT) is not available on server
  23. update in this thread, do not create a new one

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.