I am trying to create an add-on of a "Smart Mob" that acts like a player, and has goals like one (e.g. build a house, gather better resources, try to reach the Nether and End, etc)
The only thing I'm struggling with is the fact that I can't get any block's attributes in TypeScript, like how long it takes to mine a block, what tool and material is needed to mine said block, etc.
I would make a list of hard-coded values, but:
1. It's tedious work,
2. Other Add-ons can change existing block's attributes and mess up the hard-coded values,
3. There will be annoying side effects for all custom blocks because it's not in the list.
So being able to access some of the selected block's data would be very helpful. :)
Also adding a way to get/set block states (the cracks that show when mining) would help to sell the look that the Smart Mob is "mining" (when in actuality, I'm just setting the block's state while he swings his arm)
Thanks! :D
Edit: I have another post asking this for mobs.
Please sign in to leave a comment.
0 Comments