Custom Blocks

Share scripts you wrote for Denizen-Bukkit here!
Post Reply
Xeane
New
New
Posts: 8
Joined: October 21st, 2019, 1:46 pm

Custom Blocks

Post by Xeane » November 23rd, 2019, 9:52 am

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
Last edited by Xeane on November 24th, 2019, 8:27 am, edited 1 time in total.

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 236
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: Custom Blocks

Post by mcmonkey » November 24th, 2019, 2:40 am

(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.
Denizen lead developer.
http://mcmonkey.org

Xeane
New
New
Posts: 8
Joined: October 21st, 2019, 1:46 pm

Re: Custom Blocks

Post by Xeane » November 24th, 2019, 8:28 am

Took the above suggestions, made the system scale a bit better, and reduced overall code.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest