Difference between revisions of "YouTube-Tutorials-19"
From McJty Modding
(→Warning) |
(→Porting) |
||
Line 17: | Line 17: | ||
{{warning|1=The tutorial for 1.19 is not ready yet! On the GitHub you can currently find the work in progress port to 1.19. Most of the things are working}} | {{warning|1=The tutorial for 1.19 is not ready yet! On the GitHub you can currently find the work in progress port to 1.19. Most of the things are working}} | ||
− | ==Porting== | + | ==Porting from 1.18.2== |
===Various bits of information to help with porting=== | ===Various bits of information to help with porting=== | ||
Line 33: | Line 33: | ||
* Add monster_spawn_block_light_limit and monster_spawn_light_level to dimension type | * 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 | * 'configured_structure_feature' -> 'structure'. Some changes to json. More info later | ||
+ | |||
+ | ===The Porting Tutorial=== | ||
+ | |||
+ | In [[this section|Porting to 1.19]] we explain step by step how to port the tutorial from 1.18.2 to 1.19 |
Revision as of 11:32, 20 June 2022
Contents
Introduction
Everything you need to know about 1.19 modding with Forge.
Documentation
- The official Forge documentation. Very well written and good explanation on various subjects
- Very good Wiki with all kinds of Forge related info
Useful links
Warning
Porting from 1.18.2
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
The Porting Tutorial
In Porting to 1.19 we explain step by step how to port the tutorial from 1.18.2 to 1.19