#Disable a flower from generating?
15 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I assume you can just disable the feature
You can add and remove worldgen features with KubeJS, and the wiki has pages on those!
Thank you for the reply. To confirm I am on 1.19.2 and Forge 43.2.8
However, I'm not entirely sure what the syntax should look like in this case (since the examples show ores, or adding things)
Would I use this?
event.removeFeatureById(somethingHere?, ['biomesoplenty_pinkdaffodil'])
})```
An easy fix would be to use the BlockSwap mod
If you don't know the feature ID, I think you can find it by checking the /place feature command, and toss that in the brackets.
As for the first arg, check the Generation Steps. I'm gonna take a guess and say vegetal_decoration is what spawns the Flowers. So you could do:
WorldgenEvents.remove(event => {
event.removeFeatureById('vegetal_decoration', ['featureID'])
})
For disabling the item, I assume you want to hide it from JEI/REI and remove any recipes it has, so you can just make a client script that hides it from JEI/REI and then do event.remove({}) for the recipes.
For me, I just make a script with priority over everything and make a tag called custom:disabled and make a client script that hides items from whatever and a server script to disable the recipes.
Do you know what to enter after the item? /place feature biomesoplenty:pink_daffodil [<pos>] (not sure what the syntax for position is)
where would that first script be? How do you set its priority over everything?
You shouldn't need anything after that. Just get whatever the feature ID is from the command and then toss it in the code. If it's biomesoplenty:pink_daffodil, then try this:
WorldgenEvents.remove(event => { //This is a Startup script
event.removeFeatureById('vegetal_decoration', ['biomesoplenty:pink_daffodil'])
})
where would that first script be?
Make a file, throw it inserver_scripts. Make this script:
//priority: 9999
ServerEvents.tags('item', event =>{
event.add('custom:disabled', 'modid:someitem')
})
//In the same file, put:
ServerEvents.recipes(event =>{
event.remove({output: '#custom:disabled'})
console.log('Execute Order 66') //Cause why not
})
For hiding from JEI, make a file and throw it in client_scripts:
//priority: Something under 9999
JEIEvents.hideItems(event =>{
event.hide('#custom:disabled')
})
Hope this helps
Thank you, yes this is perfect!