Custom Blocks
Custom Blocks
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
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
Last edited by Xeane on November 24th, 2019, 8:27 am, edited 1 time in total.
- mcmonkey
- Site Admin
- Posts: 295
- Joined: August 5th, 2016, 7:27 pm
- Location: Los Angeles, California, USA
- Contact:
Re: Custom Blocks
(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
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
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.Denizen lead developer. On Discord as
mcmonkey#6666
.Re: Custom Blocks
Took the above suggestions, made the system scale a bit better, and reduced overall code.
Who is online
Users browsing this forum: No registered users and 1 guest