#auto compact

1 messages · Page 1 of 1 (latest)

leaden stratus
#

How can I make it so that each player activates/deactivates a function individually and this function should turn 64 items into one item

calm krakenBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1722532134:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

shadow frigate
#

Run the function as all players

leaden stratus
#

and how ?

narrow grove
#

as @a does it as all players

leaden stratus
#

this must go in load?

#

and how player can deactivate or activate this

narrow grove
#

and changing @a to @a[tag=YOUR TAG]

leaden stratus
#

So I want you to be able to activate or deactivate the function using a book

shadow frigate
#

Ok, that's a totally different question then

leaden stratus
#

As I do comands with books, I just don't know how to activate or deactivate it

trail wren
#

This is 3 things at once:

  • make one item from a full stack
  • execute a ticking function as all players (with a tag)
  • provide a book interface for each player to tag themselves

All of these can be tackled on their own. I highly suggest you start with one and then tackle the others

#

Id implore you to start implementing one of those and ask questions upfront or when you’re stuck, not for all 3 things at once

leaden stratus
#

Hoe I can make each player to Tag themselves

shadow frigate
#

Based on PuckiSilver's guidance, probably a click event in a book

leaden stratus
#

And how I can make an Player Tag

trail wren
#

You can add/remove tags for any entity using the /tag command

teal oysterBOT
#
📜 /tag

tag <targets> add <name>

Adds a tag to the targets.

tag <targets> list

Lists all tags on the targets.

tag <targets> remove <name>

Removes a tag from the targets.

trail wren
#

Then you can check it in selectors
@e[tag=<name>]

#

In books you can make clickable text that runs commands using regular json text components

#

This is a nice richt text generator:

teal oysterBOT
#
Minecraft Tools
About

Minecraft Tools has a really intuitive and easy GUI editor for JSON text and tellraw editor which makes creating nice-looking tellraw messages super easy

trail wren
#

But if you simply run the tag command in the book, only people with operator rights will be able to use it

#

So you need to use /trigger and trigger scoreboards

leaden stratus
#

I Hage this scoreboard

trail wren
#

To add a trigger scoreboard, just use trigger as the scoreboard criteria
scoreboard objectives add <name> trigger

leaden stratus
#

scoreboard players enable @a axenetherite
execute as @a[scores = {axenetherite = 1..}] run function pack:upgrade/axenetherite

trail wren
#

Then you need to enable it for all players, you can do that in a tick function for now
scoreboard players enable @a <name> (I think?)

#

And yea, you can react to it like that
@?[scores={…}] or execute if score …

#

Oh and the command in the book has to then be /trigger <name> set <value>

leaden stratus
#

But how can the players give themselves a day?

trail wren
#

Give a day? You mean only be able to run it once a day or what?

leaden stratus
#

i mean tag sry

trail wren
#

Ah

  1. run trigger command through book
  2. react to the specific value in tick function
  3. tag any player with trigger score at specific value
#

2 and 3 here are pretty much 1 command

leaden stratus
#

Do I have to make a separate book entry for each player?

trail wren
#

No

#

The book has a command to set the trigger value - let’s say to 3

#

Then, in tick you react to any player, that has that value set to 3

#

And if that’s the case - do the tag logic

#

A scoreboard value always has a score holder, a score board and a value

#

For trigger, the score holder is always the player triggering it

leaden stratus
#

how i make all this in commands

#

i will make this like that 2:26 but with a book https://www.youtube.com/watch?v=bPFPUGorD5Y

✘ Meine Bücher & Equipment: https://amzn.to/2qB4qnY
● Werde Kanalmitglied: https://bit.ly/2ULNREl
✘ Spark Merch Shop: https://teespring.com/de/stores/sparkofphoenix

● Social Network Links:
📌 Kanal Abonnieren: http://bit.ly/VN5L5A
📷 Instagram: http://bit.ly/2grHigT
⏰ TikTok: https://bit.ly/3eAZzsA
🐦 Twitter: http://bit.ly/QO9Vai
📘 Facebook: http...

▶ Play video
trail wren
#

You need a load function
Create the scoreboard in the load function
You need a tick function
You need to give the player/let the player craft the book
You need to enable the score in tick
You need to react to the score

leaden stratus
#

scoreboard objectives add stone_compact trigger
scoreboard players enable @a stone_compact
execute as @a[scores = {stone_compact = 1..}] run function pack:cobblecompact
say ello

trail wren
#

what does the function do you call? what scoreboard is the "Level" scoreboard?

leaden stratus
#

tag @s add cobble_compact

#

How can I give the tag to the player who wants to activate it tag @a add cobble_compact

leaden stratus
#

How can I do if a player has 64 items in their inventory, they are deleted and he gets 1 new item?

leaden stratus
#

?

leaden stratus
#

anyone here?