Closed MrJorman closed 2 years ago
I think you can use replace_block
for this purpose.
Be sure to use the IDE to get autocompleted code.
https://ide.devs.beer/itemsadder/
https://itemsadder.devs.beer/plugin-usage/advanced/item-properties/events/actions wtf you give me "replace_block" ???
whooo?
No working. I can't turn the cut wood back into the usual one and repeat this action.
interact.left:
replace_block:
from: OAK_PLANKS
to: gems:oak_planks_carved
decrement_durability: 1
replace_block_2:
from: gems:oak_planks_carved
to: OAK_PLANKS
decrement_durability: 1
It's obvious:
You're trying to attach the replace_block_2
action to a vanilla block OAK_PLANKS.
This is not possible.
This config would work if both materials are custom blocks.
This is not a bug, it's a feature request.
Terms
Discord tag (optional)
CrackedLix#3875
What happened?
I want to repeat the idea of the Chisel mod, where using a chisel or saw, you can make different other blocks from blocks and use the right mouse button or the left mouse button to change these blocks, but in your plugin - this can only be done 1 time, since then it simply does not work to repeat the chain of these blocks and return to the source material.
Steps to reproduce the issue
Server version
This server is running Paper version git-Paper-197 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: a8f2d67) You are 3 version(s) behind Download the new version at: https://papermc.io/downloads Previous version: git-Paper-181 (MC: 1.18.1)
ItemsAdder Version
ItemsAdder 2.5.5
ProtocolLib Version
ProtocoLib 4.7.0
LoneLibs Version
LoneLibs 1.0.16b
LightAPI Version (optional)
LightAPI 5.1.0
LibsDisguises Version (optional)
No response
FULL server log
no logs.
Error (optional)
No response
ItemsAdder config.yml
Problematic items yml configuration file (optional)
Other files, you can drag and drop them here to upload. (optional)
No response
Screenshots/Videos (you can drag and drop files or paste links)
https://youtu.be/sN4oQ0e9w68