#Placeable Command Blocks
25 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
im sure its changing some attribute about them on blockregistry but i haven't the faintest
if all else fails i can just use a mod i suppose
i thought they are placeable in survival
not in 1.19 at least
does the witherstorm mod not add a way to place them
cause it seems kinda stupid to have a mod that requires you to do something impossible
nah usually it's preplaced in a structure but i've disabled it so that theres progression
my vision is the end dragon drops the command block that you place as part of the structure to summon the storm
you should probably ask the creator of witherstorm to allow placing command blocks, otherwise its a bit silly that you cant if you disable a config
as for doing it in kubejs, its possible although may be a bit janky (making another fake command block then replacing it with a regular command block when placed)
normally i would but witherstorm mod maker refuses to update anything before 1.19.4 unfortunately
and disabling the structure isn't a config :/ i have to do the whole dummy biome that doesn't spawn thing in kubejs to disable it with a datapack
i figured it would have to be some kind of workaround but i hoped that there was a flag on the block that i could flip
oh well
ah
ty ty for the effort i appreciate it
actually looks like its controlled by the block item, so you could registry replace that
const $Blocks = Java.loadClass('net.minecraft.world.level.block.Blocks')
const $BlockItem = Java.loadClass('net.minecraft.world.item.BlockItem')
const $IProperties = Java.loadClass('net.minecraft.world.item.Item$Properties')
StartupEvents.registry('item', event => {
event.createCustom('minecraft:command_block', () => new $BlockItem($Blocks.COMMAND_BLOCK, new $IProperties().rarity('RARE')))
})
and if you wanted to do the inverse, make a block only placeable by creative mode players, you can use net.minecraft.world.item.GameMasterBlockItem instead of the block item i used there