home Forumsplay_arrow Help play_arrow Java Edition

1

Vanilla item replacement/Custom items

1 emeralds5 replies40 views
created 07/11/2019 8:09 am by lolw0tm8
last reply 07/13/2019 3:55 am
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 avatar
lolw0tm8
Level 25 : Expert Nerd
16

comment Login or register to post a reply.

5 replies

1
07/11/2019 8:52 am
Level 8 : Apprentice Modder
TomatoCake
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 25 : Expert Nerd
lolw0tm8
but the item that replaced the item wouldnt have special stuff i need it to have
1
07/12/2019 4:56 amhistory
Level 8 : Apprentice Modder
TomatoCake
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 25 : Expert Nerd
lolw0tm8
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 8 : Apprentice Modder
TomatoCake
try this: /replaceitem entity @a[nbt={SelectedItem:{id:"minecraft:iron_axe"}}] weapon minecraft:iron_axe{display:{Lore:["{\"text\":\"hey\",\"color\":\"gray\"}"]}}

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome