Page 1 of 1

Custom Blocks

Posted: November 23rd, 2019, 9:52 am
by Xeane
This is a system i wrote for custom blocks, meant to be used with a resource pack.
You can place the blocks, and break them to get them back.

You can make any item a custom block by using the sponge material, and having the nbt data "is_custom_block" set to true.

Example Item:

Re: Custom Blocks

Posted: November 24th, 2019, 2:40 am
by mcmonkey
(This post is in regards to haste )

Suggestion: switch the "is_custom_block" setting to be an item script key. Use like <ITEM.script.yaml_key[is_custom_block]||false>

also, probably disable debug on the main script if you're considering it in good enough condition to post publicly :P

Also, I'm a bit concerned about the usage of a mob spawner as the underlying block type. Why not use something less likely to bug, like a stone block or whatever?

Also: use .as_entity and .as_item for in-line conversion within a tag.

Re: Custom Blocks

Posted: November 24th, 2019, 8:28 am
by Xeane
Took the above suggestions, made the system scale a bit better, and reduced overall code.