1
Item Upgrade System with Command Blocks?
So I'm making a pretty long adventure map. And I need it to have a weapon upgrade system.
I'm making it on the RR3 modpack so I have a lot of mods at my disposal, but the closest I could get to making my own upgrades without command blocks, was Custom NPCs which I added in. Sadly, it isn't quantity specific. So if I put 3 diamonds in one slot into the recipe, you only need one to make the item. Which would allow players to very easily cheat.
I need a set of command blocks that will check, if the player has a specific weapon in their selected hotbar slot, as well as the required amount of the other item in any other hotbar slot.
So let's say you want to upgrade a wooden sword, into a stone one. The command blocks will need to check if the player is holding a wooden sword, and if there are also exactly 4 diamonds in his hotbar. The player will need to right click on the sword, and it will delete the 4 diamonds in the hotbar, and change the wooden sword into a stone sword.
I know it's going to somehow require using scoreboards, so can someone please just make a command block/redstone contraption that works, because I'm absolutely horrible at anything to do with command block+redstone.
I'm making it on the RR3 modpack so I have a lot of mods at my disposal, but the closest I could get to making my own upgrades without command blocks, was Custom NPCs which I added in. Sadly, it isn't quantity specific. So if I put 3 diamonds in one slot into the recipe, you only need one to make the item. Which would allow players to very easily cheat.
I need a set of command blocks that will check, if the player has a specific weapon in their selected hotbar slot, as well as the required amount of the other item in any other hotbar slot.
So let's say you want to upgrade a wooden sword, into a stone one. The command blocks will need to check if the player is holding a wooden sword, and if there are also exactly 4 diamonds in his hotbar. The player will need to right click on the sword, and it will delete the 4 diamonds in the hotbar, and change the wooden sword into a stone sword.
I know it's going to somehow require using scoreboards, so can someone please just make a command block/redstone contraption that works, because I'm absolutely horrible at anything to do with command block+redstone.
Create an account or sign in to comment.
4
1
So I just realized that RR3 uses Minecraft 1.7.10. The option I suggested is not possible for that version. Sorry, but you will have to go for something else.
1
I will post a reply tomorrow with details on how to make that option happen (if nobody does it earlier). Sorry that I can't do it now, but I just don't have the time :/.
1
Thanks for the informative reply. I think I'll go with the first option.
1
Rightclick detection is very meh in Minecraft atm. Normally you would use an invisible villager with no trades, but you can imagine that's very very clunky.
I would suggest either 2 things:
- Letting the players throw both the items on the ground at the same spot to upgrade an item.
- Summon a villager with custom trades.
Just let me know if you want to try out one of these and want to know how.
I would suggest either 2 things:
- Letting the players throw both the items on the ground at the same spot to upgrade an item.
- Summon a villager with custom trades.
Just let me know if you want to try out one of these and want to know how.