#Fungus Trees

76 messages · Page 1 of 1 (latest)

ashen imp
#

Is it possible through KubeJS to force a fungus tree to grow on inappropriate soil?

(ex. adding custom nylium-infested dirt for the overworld and forcing fungus trees to grow when bonemealed rather than doing nothing due to not being on the expected nylium)

limber gobletBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

buoyant kelp
#

it may be controlled by a block tag

#

maybe minecraft:nylium

ashen imp
#

Placement is controlled by a block tag, but the trees apparently grow specifically on their corresponding block

buoyant kelp
#

no? they can grow on any kind of nylium

ashen imp
#

really?

buoyant kelp
#

the fungus 'sapling' only spawns on the specific type, but the actual tree part can be on any nylium afaik

ashen imp
#

thought that the nylium and fungus had to be matching

#

i can try it but I don't think so

buoyant kelp
#

oh nvm

#

it doesnt

abstract radish
#

I think you have that reversed

ashen imp
#

I mean you can place the fungus 'sapling' on any #minecraft:nylium block

#

it just won't grow if it's not the right one

buoyant kelp
#

ah, seems to be controlled by the feature json

ashen imp
#

i was considering adding a custom pair of nylium dirts for an overworld version of the forest biomes

buoyant kelp
#

so it is possible to change

ashen imp
#

you're joking

buoyant kelp
#

oof

ashen imp
#

So just... changing the huge_fungus definition in a datapack would work?!

buoyant kelp
#

seems the json only accepts one block type

#

if you wanted to change it tho, at data/minecraft/worldgen/configured_feature/ put warped_fungus_planted.json: ```json
{
"config": {
"hat_state": {
"Name": "minecraft:warped_wart_block"
},
"decor_state": {
"Name": "minecraft:shroomlight"
},
"planted": true,
"valid_base_block": {
"Name": "kubejs:my_much_better_block"
},
"stem_state": {
"Properties": {
"axis": "y"
},
"Name": "minecraft:warped_stem"
}
},
"type": "minecraft:huge_fungus"
}

#

and same for crimson

ashen imp
#

...ok, hear me out

could I copy it?

#

like duplicate the definition and make it work for both

buoyant kelp
#

on 1.18, no

#

on 1.19 you probably could

ashen imp
#

hm.

#

here's another idea

#

Could I add another block state for Crimson Nylium/Warped Nylium

buoyant kelp
#

i dont think so, forge specifically blocks that sort of thing when registry replacing

#

even if you could, the json requires you specify a specific blockstate

ashen imp
#

fair...

#

just thought that maybe I could create a Nylium block equivalent for dirt that was still the same block

#

Hold on

#

can you make custom trees with KubeJS?

buoyant kelp
#

kinda...
its very janky on 1.18 and you have to write the grow logic yourself

ashen imp
#

What if I made a KubeJS custom tree that used the same sapling, used the same blocks, but grew on the KubeJS nylium dirt

buoyant kelp
#

on 1.19 you can just copy the existing item

ashen imp
buoyant kelp
#

all of the above

ashen imp
#

former? no problem. Latter? Ew.

buoyant kelp
#

there may be a helper method somewhere you can call to place a feature, im not sure

#

no ones been crazy enough to try

ashen imp
#

LOL

#

well the annoying thing is I can't see what methods are available

#

so

ashen imp
#

figured I might as well try shooting for the moon, y'know

#

if it was possible

ashen imp
#

oh?

buoyant kelp
#

just need a mod dev env, or spend a while going through linkie

ashen imp
#

what

buoyant kelp
#

??linkieweb allows you to search for methods

pastel inletBOT
buoyant kelp
#

or a mod dev enviroment just gives you mcs code to search

ashen imp
#

uuuh

#

well, minecraft 1.18.2 has a "placefeaturecommand" class

buoyant kelp
#

oh yeah its a command now

#

that makes things a bunch easier

ashen imp
#

OH YEAH

#

SO I CAN JUST HAVE KUBEJS USE THE COMMAND

#

oh my god that's so much easier

buoyant kelp
#

or copy the code the command uses
but getting kubejs to use the command is probably much easier

ashen imp
#

the command does check criteria

#

so I'd have to... change the block under the thing, then call the command, then... wait

#

no nevermind

#

cuz I can just make a custom feature

#

that works the same but has a different name and spawn criteria

#

That was easier than I expected, though!

#

or, well

#

should be easier than I expected

#

I haven't implemented it yet

limber gobletBOT
#

@ashen imp Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!