[Answered] Damaging item

Started by Evil_Soul on Thu, 01/28/2021 - 11:41

Topic category: Advanced modding

Last seen on 15:23, 1. Feb 2021
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[Answered] Damaging item
Fri, 01/29/2021 - 14:16 (edited)

HeY!

So I created a pickaxe that you have to load with coals. Like that:

Picture of my procedure that loads the coal into the pickaxe

but I want to give a pickaxe that have only 8 durability.

how do I do that? Is it possible?

Edited by Evil_Soul on Fri, 01/29/2021 - 14:16
Last seen on 16:00, 22. Feb 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I guess the pickaxe you get…
Fri, 01/29/2021 - 08:34

I guess the pickaxe you get from "loading" it is a separate item, so you can simply set the durability of that item to 8 I think. 

Last seen on 15:23, 1. Feb 2021
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Which damage modifier should…
Fri, 01/29/2021 - 09:31

Which damage modifier should I use, because none of them work for me.Picture of my procedure that show the two damage modifier that I use.

Last seen on 14:36, 10. Apr 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
That won't work as you are…
Fri, 01/29/2021 - 11:38

That won't work as you are applying the damage to any pickaxe not the one in your inventory.

Make an local itemstack variable as the pickaxe. Apply the damage to the itemstack. Then add to your inventory.

Last seen on 15:23, 1. Feb 2021
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I do that? I'm not a…
Fri, 01/29/2021 - 13:20

How do I do that?

I'm not a genius of itemstack.

Last seen on 15:23, 1. Feb 2021
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah I know, but I don't…
Fri, 01/29/2021 - 14:00

Yeah I know, but I don't know how to do it. One of my procedures is working:Picture of my procedure that works with local itemstack variable

but the other is not:

Picture of my procedure that don't work

what should I do?

Last seen on 14:36, 10. Apr 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In the second image, Replace…
Fri, 01/29/2021 - 14:04

In the second image, Replace provided itemstack to the torch pickaxe. Then add the get local pickaxe to your inventory.

Last seen on 15:23, 1. Feb 2021
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks for the help, I make…
Fri, 01/29/2021 - 14:17

Thanks for the help, I make this and it works perfectly.Picture of my procedure that works perfectly.