Custom Blocks

Xeane

Member
Oct 21, 2019
7
0
0
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.

Script: https://one.denizenscript.com/haste/62295
Example Item:https://one.denizenscript.com/haste/62296
 

mcmonkey

Administrator
Staff member
Helper
(This post is in regards to haste https://one.denizenscript.com/haste/62245 )

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.
 

Xeane

Member
Oct 21, 2019
7
0
0
Took the above suggestions, made the system scale a bit better, and reduced overall code.