1

Vanilla item replacement/Custom items

bhfdh's Avatar bhfdh7/11/19 8:09 am
1 emeralds 307 5
7/13/2019 3:55 am
TomatoCake's Avatar TomatoCake
Is there way that you can replace vanilla items with custom items - same item but special name, lore, enchantments etc.
For ex:

In creative you have diamond hoe, you click it to get it but when you put it in your inventory it will swap with premade item
with custom name and lore. The item (ID, look...) will be the same just stuff added
This thing works in CrackShot plugin where you can enable to automatically replace the item you use for a gun with actual gun:
Iron hoe > AK-47
Diamond shovel > M4A1
just by getting the item makes you get a special item - gun or other stuff
now if you understand what i mean by that can you help me?

Note: I dont want some java codes or stuff, im not plugin developer, however you could tell me if there is plugin that does it
or make me the plugin or make me a command for it


Posted by bhfdh's Avatar
bhfdh
Level 34 : Artisan Creeper Hugger
20

Create an account or sign in to comment.

5

1
07/11/2019 8:52 am
Level 65 : High Grandmaster Cake
TomatoCake
TomatoCake's Avatar
My suggestion would be to create a function or use a command block,
and check that the player is holding the item in hand, and if so,
replace it with / replaceitem with the item you want to have.

TomatoCake
1
07/11/2019 10:22 am
Level 34 : Artisan Creeper Hugger
bhfdh
bhfdh's Avatar
but the item that replaced the item wouldnt have special stuff i need it to have
1
07/12/2019 4:56 amhistory
Level 65 : High Grandmaster Cake
TomatoCake
TomatoCake's Avatar
If you need a Diamond Pickaxe with Effiency 10, use /replaceitem entity @p weapon diamond_pickaxe{Enchantments:[{lvl:10,id:"effiency"}]}

I can't try it out now, but it should work...
2
07/12/2019 10:43 am
Level 34 : Artisan Creeper Hugger
bhfdh
bhfdh's Avatar
i need something like
iron axe > iron axe =
= name: §fHatchet
lore: §7§oA Hatchet, useful for chopping trees and dismembering corpses.


so everytime i would get iron axe it will be replaced with another iron axe but with the special name and lore
1
07/13/2019 3:55 am
Level 65 : High Grandmaster Cake
TomatoCake
TomatoCake's Avatar
try this: /replaceitem entity @a[nbt={SelectedItem:{id:"minecraft:iron_axe"}}] weapon minecraft:iron_axe{display:{Lore:["{\"text\":\"hey\",\"color\":\"gray\"}"]}}
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome