#Change Default Placement State of modded Block
12 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
block place event, then modify their blockstate
oh theres no way to actually change the placementstate?
how do i keep the waterlogged state?
????
you're given the blockstate it's going to place.... get the properties, then change what you want and set them back
const someListOfBlocksToMod = ['mod:name', 'mod:name']
BlockEvents.placed(event => {
let block = event.block
let blockid = block.id
if (someListOfBlocksToMod.includes(blockid) {
let properties = block.properties
// modify here
// set block to new properties
block.set(blockid, properties)
}
})
it appears as lit for a split second when placing, no way to fix this?
not that I'm personally aware of