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:sedimentary_rock')
|
||||
|
||||
const $Blocks = Java.loadClass('net.minecraft.world.level.block.Blocks')
|
||||
const $Properties = Java.loadClass('net.minecraft.world.level.block.state.BlockBehaviour$Properties')
|
||||
const $SproutsBlock = Java.loadClass('net.minecraft.world.level.block.NetherSproutsBlock')
|
||||
event.create('tfg:mushroom_roots', 'tfg:decorative_plant')
|
||||
.soundType('nether_wart')
|
||||
.tagItem('tfc:plants')
|
||||
|
||||
event.createCustom('tfg:mushroom_roots', () => new $SproutsBlock($Properties.copy($Blocks.WARPED_ROOTS)))
|
||||
event.createCustom('tfg:mushroom_sprouts', () => new $SproutsBlock($Properties.copy($Blocks.NETHER_SPROUTS)))
|
||||
event.create('tfg:mushroom_sprouts', 'tfg:decorative_plant')
|
||||
.soundType('nether_wart')
|
||||
.tagItem('tfc:plants')
|
||||
|
||||
event.create('tfg:charred_log')
|
||||
.fullBlock(true)
|
||||
|
|
|
|||
|
|
@ -212,6 +212,19 @@ function registerTFGSpaceBlocks(event) {
|
|||
.stoneSoundType()
|
||||
.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
|
||||
//Fluorapatite
|
||||
const fluorapatite_colors = ['blue', 'green', 'brown', 'orange', 'white', 'yellow'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue