Difference between revisions of "YouTube-Tutorials-19"

From McJty Modding
Jump to: navigation, search
(Created page with "==Introduction== Everything you need to know about 1.19 modding with Forge. ===Documentation=== * [http://mcforge.readthedocs.org/en/latest/ The official Forge documentatio...")
 
Line 15: Line 15:
 
===Warning===
 
===Warning===
  
The tutorial for 1.19 is not ready yet! On the GitHub you can currently find the very first port attempt to Forge for 1.19. This is still very broken. Most blocks and items work fine but everything related to worldgen is not working at all!
+
{{warning|1=The tutorial for 1.19 is not ready yet! On the GitHub you can currently find the very first port attempt to Forge for 1.19. This is still very broken. Most blocks and items work fine but everything related to worldgen is not working at all!}}
 +
 
 +
==Porting==
 +
 
 +
===Various bits of information to help with porting===
 +
 
 +
* new TranslatableComponent() -> Component.translatable()
 +
* new TextComponent() -> Component.literal()
 +
* player.sendMessage() -> player.sendSystemMessage()
 +
* ForgeRegistries.STRUCTURE_FEATURES -> Lots of changes! More info later
 +
* ChunkGenerator
 +
* BiomeLoadingEvent missing -> More info later on how to change this
 +
* Block Properties: noDrops() -> noLootTable()
 +
* XXX.getRegistryName() -> ForgeRegistries.<type of XXX>.getKey(XXX)
 +
* DataGeneration -> extra boolean with addProvider. Give generator.includeClient() for client side and generator.includeServer() for server side
 +
* SlotItemHandler -> temporary initialize() override until fixed in Forge
 +
* Add monster_spawn_block_light_limit and monster_spawn_light_level to dimension type
 +
* 'configured_structure_feature' -> 'structure'. Some changes to json. More info later

Revision as of 09:44, 8 June 2022

Introduction

Everything you need to know about 1.19 modding with Forge.

Documentation

Useful links

Warning

18px-OOjs_UI_icon_notice-destructive.svg.png Warning: The tutorial for 1.19 is not ready yet! On the GitHub you can currently find the very first port attempt to Forge for 1.19. This is still very broken. Most blocks and items work fine but everything related to worldgen is not working at all!

Porting

Various bits of information to help with porting

  • new TranslatableComponent() -> Component.translatable()
  • new TextComponent() -> Component.literal()
  • player.sendMessage() -> player.sendSystemMessage()
  • ForgeRegistries.STRUCTURE_FEATURES -> Lots of changes! More info later
  • ChunkGenerator
  • BiomeLoadingEvent missing -> More info later on how to change this
  • Block Properties: noDrops() -> noLootTable()
  • XXX.getRegistryName() -> ForgeRegistries.<type of XXX>.getKey(XXX)
  • DataGeneration -> extra boolean with addProvider. Give generator.includeClient() for client side and generator.includeServer() for server side
  • SlotItemHandler -> temporary initialize() override until fixed in Forge
  • Add monster_spawn_block_light_limit and monster_spawn_light_level to dimension type
  • 'configured_structure_feature' -> 'structure'. Some changes to json. More info later