convert the nether mushrooms into the new plant block builder type too
This commit is contained in:
parent
39c847a561
commit
2c564ab3f3
2 changed files with 19 additions and 5 deletions
|
|
@ -76,12 +76,13 @@ function registerTFGNetherBlocks(event) {
|
||||||
.tagItem('tfc:rock_knapping')
|
.tagItem('tfc:rock_knapping')
|
||||||
.tagItem('tfc:sedimentary_rock')
|
.tagItem('tfc:sedimentary_rock')
|
||||||
|
|
||||||
const $Blocks = Java.loadClass('net.minecraft.world.level.block.Blocks')
|
event.create('tfg:mushroom_roots', 'tfg:decorative_plant')
|
||||||
const $Properties = Java.loadClass('net.minecraft.world.level.block.state.BlockBehaviour$Properties')
|
.soundType('nether_wart')
|
||||||
const $SproutsBlock = Java.loadClass('net.minecraft.world.level.block.NetherSproutsBlock')
|
.tagItem('tfc:plants')
|
||||||
|
|
||||||
event.createCustom('tfg:mushroom_roots', () => new $SproutsBlock($Properties.copy($Blocks.WARPED_ROOTS)))
|
event.create('tfg:mushroom_sprouts', 'tfg:decorative_plant')
|
||||||
event.createCustom('tfg:mushroom_sprouts', () => new $SproutsBlock($Properties.copy($Blocks.NETHER_SPROUTS)))
|
.soundType('nether_wart')
|
||||||
|
.tagItem('tfc:plants')
|
||||||
|
|
||||||
event.create('tfg:charred_log')
|
event.create('tfg:charred_log')
|
||||||
.fullBlock(true)
|
.fullBlock(true)
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,19 @@ function registerTFGSpaceBlocks(event) {
|
||||||
.stoneSoundType()
|
.stoneSoundType()
|
||||||
.noItem()
|
.noItem()
|
||||||
|
|
||||||
|
// #region Plants
|
||||||
|
|
||||||
|
event.create('tfg:lunar_roots', 'tfg:decorative_plant')
|
||||||
|
.soundType('nether_wart')
|
||||||
|
.lightLevel(0.4)
|
||||||
|
.tagItem('tfg:moon_plants')
|
||||||
|
|
||||||
|
event.create('tfg:lunar_sprouts', 'tfg:decorative_plant')
|
||||||
|
.soundType('nether_wart')
|
||||||
|
.tagItem('tfg:moon_plants')
|
||||||
|
|
||||||
|
// #endregion
|
||||||
|
|
||||||
//#region Venus Blocks
|
//#region Venus Blocks
|
||||||
//Fluorapatite
|
//Fluorapatite
|
||||||
const fluorapatite_colors = ['blue', 'green', 'brown', 'orange', 'white', 'yellow'];
|
const fluorapatite_colors = ['blue', 'green', 'brown', 'orange', 'white', 'yellow'];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue