#Placeable Command Blocks

25 messages · Page 1 of 1 (latest)

tawdry falcon
#

Hello! Is it possible to make command blocks placeable and mineable in Survival? (for the wither storm mod)

normal ivyBOT
#

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

tawdry falcon
#

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

shell estuary
#

i thought they are placeable in survival

tawdry falcon
#

not in 1.19 at least

shell estuary
#

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

tawdry falcon
#

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

shell estuary
#

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)

tawdry falcon
#

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

shell estuary
#

ah

tawdry falcon
#

ty ty for the effort i appreciate it

shell estuary
#
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')))
})
tawdry falcon
#

i seeee very interesting

#

i can confirm this lets me place them

shell estuary
#

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

tawdry falcon
#

neat!

#

thank you very much i appreciate it