Minecraft Texture Packs / Experimental Packs

Custom Tools Template -- Full Functionality (requires Beta APIs toggle)

  • check_circle Items
  • check_circle Misc
  • 1,572 views, 7 today
  • 216 downloads, 0 today
  • 12
  • 10
  • 4
Bedrock Edition
NeonNinja3's Avatar NeonNinja3
Level 26 : Expert Unicorn
26
ABOUT THIS PACK:

Current as of Minecraft Bedrock Edition 1.20.71, pack format version 1.20.30, and @minecraft/server version 1.10.0-beta, this resource is intended as a tutorial/reference for other developers of addons for Minecraft Bedrock Edition.

This is a template addon: feel free to use part or all of this pack in your own projects! :)


CONTENTS:

If you're new to making your own resource packs, and are looking to add custom tools to the game, you can find everything you need to get started here.

If you have previously made an addon containing custom tools, but have experienced problems due to changes made in the latest update, this should also help you get your pack working again.

The pack contains two full sets of custom tools: one which can be crafted using only vanilla materials, and one which is crafted from a custom block. Both sets of tools attempt to recreate all functionality from the vanilla tools. The addon should be compatible with both singleplayer and multiplayer worlds.

You can find the new tools in the "Equipment" tab of the Creative Inventory, and the new blocks under the "Nature" tab. The custom log variety is grouped with the other logs, while the custom stone variety is by itself. The crafting recipes for the custom tools follow the same patterns as the corresponding vanilla tools.

For simpler testing in Survival Mode, chickens will also drop the new wood and stone blocks, in addition to their regular loot :D



REQUIREMENTS:

The only experimental toggle you'll have to enable is the "Beta APIs" one.

For best results, create a new world with this setting first, then add the pack once the world has loaded. (Otherwise, your Creative Inventory menu tabs may not work correctly.)


ISSUES:

-- Custom tools take durability damage in Creative Mode: this is not intended. Can lead to them having invalid data values (i.e. negative durabilities) if
they
are used in Creative Mode before switching to a different game mode. FIXED

-- When the custom axes are used to strip logs, the stripped log block will always be oriented vertically, instead of keeping the old block's orientation. FIXED

-- The custom hoes convert coarse dirt to farmland instantly, without regular dirt being an intermediate step. FIXED

-- So far, I've only been able to test the pack in singleplayer mode, although I believe it should work just as well for multiplayer.

If you know of a fix for any of these, and would like to be added as a contributor to this project, let me know!
CreditThe developers of the vanilla RP/BP pack, and everyone who has contributed to the linked documentation
Progress100% complete
Game VersionMinecraft Bedrock
Resolution16x
Tags

2 Update Logs

Update #2 : by NeonNinja3 03/13/2024 6:03:17 pmMar 13th

Updated to be compatible with the latest beta version of @minecraft/server, which is 1.10.0-beta.

Bug Fixes:
-- Tools no longer take durability damage in Creative Mode
-- Log/stem/wood block orientation is now preserved after stripping log/stem/wood with custom axes (also, stems now use the correct sound effect)
-- Coarse dirt now tills to regular dirt first, then to farmland
LOAD MORE LOGS

Create an account or sign in to comment.

1
03/24/2024 11:35 am
Level 49 : Master Blockhead
SharKevan37
SharKevan37's Avatar
leabriealEsteiclittlemaego
2
03/21/2024 7:23 am
Level 20 : Expert Procrastinator
LieutSavg99
LieutSavg99's Avatar
Congratulations, NeonNinja3! This template is a neat resource for those desiring to develop an add-on!
2
03/09/2024 5:37 pm
Level 24 : Expert Cake
Masteritox
Masteritox's Avatar
Cool !
2
03/03/2024 4:56 pm
Level 26 : Expert Unicorn
NeonNinja3
NeonNinja3's Avatar
When working on any kind of addon project, the resources I've found most helpful are:

-- The Microsoft Learn documentation,

-- The Bedrock Wiki, which often has more detailed tutorials for blocks, items. etc.

-- The Minecraft Wiki, which is a great reference for finding the properties of vanilla blocks and items which aren't included in the vanilla addon template

In particular, here are some of the specific pages I referenced for each topic:

General:

https://learn.microsoft.com/en-us/minecraft/creator/documents/gettingstarted?view=minecraft-bedrock-stable (Introduction to designing addon content)


For the script file:

https://learn.microsoft.com/en-us/minecraft/creator/documents/scriptingintroduction?view=minecraft-bedrock-stable
(Introduction to server-side scripting, and the main.js file)

https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/minecraft-server?view=minecraft-bedrock-stable (Documentation for the @minecraft/server module)

https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/itemstack?view=minecraft-bedrock-stable (ItemStack: the class used to specify items on the ground or in the player's inventory)

https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/playerbreakblockafterevent?view=minecraft-bedrock-stable (Detect when the player has broken a block: this is the trigger to perform any actions pertaining to custom mining tools, such as decrementing the durability)

https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/playerinteractwithblockafterevent?view=minecraft-bedrock-stable (Detect when the player has right-clicked on a block: this is the trigger to perform any actions pertaining to special functions of custom tools, such as stripping logs or tilling dirt)


For Items:


https://learn.microsoft.com/en-us/minecraft/creator/reference/content/itemreference/examples/itemdefinition?view=minecraft-bedrock-stable (General item documentation)

https://wiki.bedrock.dev/items/item-components.html (Gives more complete syntax examples for the different components you can add to your custom items)

https://minecraft.wiki/w/Tool (From here, you can see the vanilla crafting recipes and can easily navigate to the pages with more complete information on each tool)


For Blocks:

https://wiki.bedrock.dev/blocks/block-components.html (Detailed syntax reference for block .json file and its individual components)

https://wiki.bedrock.dev/blocks/rotatable-blocks.html (How to make a custom block [like the log in this resource pack] which can be placed in different orientations. If you use the Block Wizard in Blockbench, this will be set up for you automatically, depending on which vanilla block you pick as the template.)
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome