Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement #474 and add a 'multitool' item type #681

Open
wants to merge 7 commits into
base: 1902
Choose a base branch
from

Conversation

AnAwesomGuy
Copy link
Contributor

@AnAwesomGuy AnAwesomGuy commented Aug 1, 2023

Description

This PR fixes #474 and adds a new item type, 'multitool'. To create a multitool, set the item type to 'multitool' and use .tool(toolName) to add a tool to the multitool. Valid tool types include: 'axe', 'hoe', 'pickaxe', and 'shovel'.

Example Script

// priority: 0
StartupEvents.registry('item', event => {
    event.create('axe_shovel', 'multitool').tool('axe').tool('shovel').maxDamage(172)
    event.create('pickaxe_axe', 'multitool').tier('diamond').tool('axe').maxDamage(140).tool('pickaxe')
    event.create('iron_paxel', 'multitool').tool('pickaxe').tool('axe').tool('shovel').tool('hoe').maxDamage(64)
})

@AnAwesomGuy AnAwesomGuy changed the title Implement #474 and add a 'multitool Implement #474 and add a 'multitool' item type Aug 1, 2023
@ChiefArug
Copy link
Contributor

Another thing to consider is Forges ToolAction system. It would require a subclass for Forge tho.

@AnAwesomGuy
Copy link
Contributor Author

i think its good now!

@Hunter19823 Hunter19823 added the 1.19 This issue applies to Minecraft 1.19. label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.19 This issue applies to Minecraft 1.19.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants