#Display values on Armor Stand to get a block.

1 messages · Page 1 of 1 (latest)

verbal sandal
#

I'm making a custom block and I started to use block displays but because of lighting issues I decided against it, now I'm trying to use an armor stand instead. but I'm unsure what values I should put for its transformation to be exactly in the right space.

Note the block is already slightly bigger than a block (0.02x)

golden estuary
#

Armorstands will have the same issue. They're just positioned a block higher so they will be darkened when the block above is solid

verbal sandal
#

i thought if they were markers they dont do that?

golden estuary
#

My 3 preferred ways to make a block are:

  1. Use block displays and a barrier block. You can then implement the breaking through an interaction so the player has to punch the block 3 times
    Pros
  • Pretty easy
  • The block updates to any light
  • Isn't piston pushable

Cons

  • the breaking is different
  • you can't place blocks against this block
  • pretty laggy since you have multiple entities here
  1. Use a different breakable transparent block.
    ** Pros **
  • even easier
  • also updates to light
  • Less laggy

Cons

  • you'll have to deal with the block properties of the transparent block
  • Is piston pushable so you'll have to handle that too
  1. Use double slabs as blocks.

I basically replace the double slab version of a slab type. Then when a player tries to create a double slab by placing a slab on another one, I replace the double slabs with the full block variant.

The only downsides are:

  • Compatability with other datapacks (loot table wise too)
  • A small flicker when placing a double slab
  • The block hitbox is always a full block

https://www.youtube.com/watch?v=mWoKlf-Jo3U&list=PL25JedFWY8iK1usRCd2qMu59pt4WSixE-&index=1

Finally found a decent way to add custom building blocks with datapacks.

I basically replace the double slab version of a slab type. Then when player try to create a double slab by placing a slab on another one, I replace the double slabs with the full block variant.

The only downsides are:

  • Compatability with other datapacks (loot table wise...
▶ Play video
golden estuary
verbal sandal
#

The issue is, its a custom workbench with a barrel inside..

golden estuary
#

Ooh wait does a marker armorstand even render?

verbal sandal
#

turns out block bench has a preset for custom blocks in this style

golden estuary
#

what happens when you place a block ontop of the blast furnace?

verbal sandal
#

Yea...

golden estuary
#

yea I thought so

verbal sandal
#

I need some way of hiding the barrel as my block

golden estuary
verbal sandal
#

why a hopper?

golden estuary
#

cause it's transparent cutout mipped

verbal sandal
#

ohhh

#

i mean for this block specificly not really

#

the UI is gonna be similar to that of a crafting table, with extra features

golden estuary
verbal sandal
#

Yea

golden estuary
#

Another option would be (I sometimes do that) to put some sort of candle or light ish decoration on your workbench and then set the light nbt value of the block for blockto 15. This always makes the block have a brightness of 15

verbal sandal
#

I might just suck up the darkness above until i find something better

#

ill leave this open for a bit if anyone else has any ideas

shut quarry
floral yacht
#

Different to barrier I assume

golden estuary
shut quarry
native laurel
#

way better since you have hitbox control

golden estuary
#

true but... More entities = more lag and you'll also need an item display for the shulker to ride, otherwise it will teleport when the block underneath gets broken or water flows through the block

native laurel
#

still is preferred if your block isnt a building block that will be placed 100 times

golden estuary
#

I would recommend only using that only if you need the custom hitbox

#

it has waay to many downsides that you need to handle (for example pistons can push blocks inside your block)