#Can I also buy items with items?
1 messages · Page 1 of 1 (latest)
to remove the item however, you'll have to either use the /minecraft:clear command that is provided by Minecraft, or a command from a plugin like EssentialsX
there is no action in DeluxeMenus that removes items
yeah forgot to mention that thanks 
But when I remove the item with an Essentials command, a message from Essentials is issued
How can I then block the output messages
try to remove it from the language config
dont remove the whole thing just make the message ' '
Yes, but only for deluxe menus, I need the message for other things
There must be a takeitem variable.
Just execute the command as console
what happens if you execute the command as console?
Then the message will only show in console
Hey doesn't make any sense
it does
if the console executes it then the console gets the output
except players get notif when someone removes items from the inv
It wouldn't make any difference it has to be a takeitem variable. Just change Essentials Messages for a plugin what was the author of the plugin thinking
I have it as a console output and the player is still notified
idk then
@placid acorn Can something be forwarded to the coding team to express a wish for something to be included in the plugin?
Sorry for tagging
Adding an item clear/give action was requested before and was rejected for a couple reason. I know some of them were confusion it might create and also complexity. For both the developers to implement and also for the users to learn another clear/give syntax.
I understand now what message you were talking about. I thought you meant the message saying "Items cleared from user's inventory" but I forgot essentials also sends a message to the user that had their inventory cleared
Have you tried the minecraft clear command?
That might not send a message to the affected user
That will remove all items tho
I'm pretty sure it has a way to select amount and stuff does it not?
and here's an example on a command that clears only special items
And here's the full article I've got that from https://www.digminecraft.com/game_commands/clear_command.php
This Minecraft tutorial explains how to use a game command to clear your inventory with screenshots and step-by-step instructions. You can clear items from a player's inventory using the /clear command in Minecraft.
It also has examples for 1.12.2 and older since that command had a different syntax
It's kind of the same, no matter how you do it, if you use an external command, no matter if Minecraft or Essentials, there are messages as output
messages to the player?
or messages to the command runner/console?
both
i presume you just want to stop the player message?
I get a message at /item take command and /clear item ... command
Well it would be mutch better if there was an [itemtake] variable XD
wait
?checkitem
Why can't I insert pictures XD
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
I believe those messages can be disabled with a gamerule. Need to find the gamerule
logAdminCommands
set that gamerule to false
that's vanilla mc command output (not to the player) I see
that goes to all OPs
Aren't you going to add a [takeitem] variable or something like that?

You can also use CJ's solution
his doesn't have any output
But I'm an operator so I see the message when a player clicks on it 😄
from this?
@tardy pecan did you add any output to the placeholder?
no I don't send a message to the player
the placeholder itself returns yes/no but console doesn't log [placeholder] iirc
yep, 100% a different issue than earlier described
mc clear doesn't seem to send a message to the player that it's run for
yeah. it just logs admin commands. those logs are seen by operators and by the console
and you can disable those logs by disable the gamerule
or you can go the other way, which is to use the checkitem placeholder with the [placeholder] action.
Also https://imgur.com/a/89WSSZk so
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
left_click_commands:
- '[console] serveritem give mythshard 1 %player_name%'
- '[placeholder] %checkitem_remove_mat:echo_shard,amt:1%'
- '[placeholder] %checkitem_remove_mat:emerald,amt:3%'
what about it?
This is the action from my item in the menu
oh okay it's a 1.19 item i'm not that crazy (I have no idea what 1.19 even added 😂 )
And...?
Is it working? not working?
Or as requirements? No, I think it is not considered, only the first command is fulfilled, but the items are not deducted for me
Not sure what you mean by Or as requirements?
Did you download the checkitem expansion?
test the placeholder with /papi parse me %checkitem_remove_mat:echo_shard,amt:1%
also what version of DeluxeMenus you use, matters. Make sure you're at least on the 1.13.6 release or on the latest 1.13.7 development build
Sorry it works I had an outdated version of the CheckItem Expansion
Oke nice it works ^^ Thank You soooo mutch
It's really complicated and unfortunately there is no record in the wiki but it works if you have it ^^
Checkitem?
yes
Yeah but not in the DeluxeMenu Wiki xD Is PlaceholderAPI from you?
DeluxeMenus requires placeholderapi to run
helpchat makes both placeholderapi and deluxemenus
Then I have to thank you and praise you for helping to create wonderful things with PlaceholderAPI that also help me every day and with which I was able to add wonderful things to my server. Thank you for doing that ^^
😂 thanks, we try 😄
Can you help me further? When I used this for my item - '[placeholder] %checkitem_remove_mat:IRON_INGOT,amt:1%'
- '[placeholder] %checkitem_remove_mat:EMERALD,amt:3%'
- '[console] serveritem give running shoes 1 %player_name%' doesn't work for the second item but it does for the first item in the gui
?codeblocks
Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```
For example:
```yaml
test:
- “hi”
- “there”
```
Produces:
test:
- “hi”
- “there”```
So I would like to perform an action when I click on the item, but the item is given to me without having the required items in my inventory.
Share the script please
This is my Gui yml:
'laufschuhe':
material: IRON_BOOTS
slot: 3
update: true
display_name: '&#f5cba7Laufschuhe'
lore:
- '&7● Gibt dir beim Laufen einen schnelligkeits Boost.'
- '&#a5ff9aHerstellungskosten&f:'
- '&f- &#abebc62x Speedpotion'
- '&f- &#abebc65x Eisen'
- '&f- &#abebc61x Netherite'
left_click_commands:
- '[placeholder] %checkitem_remove_mat:iron_ingot,amt:5%'
- '[placeholder] %checkitem_remove_mat:netherite_ingot,amt:1%'
- '[console] serveritem give laufschuhe 1 %player_name%'
left_click_requirement:
requirements:
has item:
type: 'has item'
material: "DIAMOND"
amount: 1
has item2:
type: 'has item'
material: "netherite_ingot"
amount: 1
But do I really need these requirements. Why is it so much more complicated to create a shop where you can pay with items. With Money and others, it's not that much code
devs decides to make it that way
okay so first remove the space in the requirement name
then remove the amout 1 or not set is the same
write the netherite_ingot in caps
cant find any other problems in the script but maybe its too late for my brain xD
lol items have more data than just 1 value, so it's naturally gonna be longer
not that it's much longer though...
hasitem2:
type: 'has item'
material: "netherite_ingot"
amount: 1
hasmoney:
type: 'has money'
amount: 1
[takemoney] 500
[placeholder] %checkitem_remove_mat:netherite_ingot% or [console] clear %player_name% netherite_ingot 1
🤷♂️
other than what Orden was saying with the spacing and caps maybe, I also do not see any issues with your configuration
You could try using checkitem to check for items as well since you're already using it for removing them though, if has item doesn't work after trying the fixes Orden mentioned
type: string equals
input: '%checkitem_mat:netherite_ingot,amt:1%'
output: 'yes'
Oke with your improvements it actually works now. I thank them for the help 😄
But I have a question. I created a menu where you have to pay for executing a command. Unfortunately, a normal player cannot execute this command. So how can I run the command as a player as an operator?
Instead of [player] put [console] in front of the command
I have already tried but I think the command cannot be executed in the console.
This is my Command: setblock -1163 69 213 minecraft:chest{LootTable:"chests/buried_treasure"} destroy
It doesnt work because there is not world set
If you use it as a player it executes in your current world
If you execute it as console it doesnt know where so it doesnt work
Do you know how to make it so that it knows what world to run in?
No but google always helps
Oke, unfortunately Google tells me that there is no way to use a Minecraft command via console in other worlds. Do you have an idea how I can solve it?
But I can't include placeholders in a Minecraft Command. or how do you mean that
the command is executed from deluxemenus
you already use %player_name%
The point is that the command (/setblock ...) cannot be executed as a player and neither as a console command.
So it's not about the menu above but about another
left_click_commands:
- '[placeholder] %checkitem_remove_mat:diamond,amt:2%'
- '[console] setblock %player_world% -1163 69 213 minecraft:chest{LootTable:"chests/buried_treasure"} destroy'
- '[message] &7Deine Lootchest kann nun gelootet werden!'
It can't be run from console?
Sounds like it could be
no minecraft Command cant be run because I'm in a different world than default
ah ya, orden wasn't quite right on this one
it only takes coords has no spot for world
A player should be able to run this command in the menu, but he can't because it's not a player command and because the console can't use such a command for another world
Is there an option with which I can run the command as an op, i.e. the player as an op
Might need a plugin to do this for ya but idk which one
hmm
what about /execute in minecraft:the_nether run setblock <x> <y> <z> <block> replace
Ah i was using multiverse for tp commands and there you could use worlds but seems like its not the same for normal commands
I really only need one option to run the command as an op. Doesn't this function exist. Then you can't implement a lot of things with this plugin. It must be assumed that the player does things in a menu for which he actually has no perm
What about execute as?
No, we will not add "run as op"
Work with Multi World World?
yes
Not quiet sure but i think with „/execute as“ you can execute a command with op perms
Thank you Thank you