#Datapack Help
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Can anyone update this datapack for me to version 1.21.4, it's not just updating pack.mcmeta. You have to change the files, if anyone can help me I would appreciate it.
I don't know English, that is, I can't watch a 100% tutorial to guide myself and I don't know anything about programming or anything related to datapack. So if anyone can help me step by step on how to update or do it for me, I appreciate it. If you want to contact me, here's my discord: CharlieGamer71 # 8727
Help | Java 1.21.4
https://www.planetminecraft.com/data-pack/upgradeable-spawner/
https://www.youtube.com/watch?v=BtMzQlMryuM
Upgradeable Spawner v1.5 Drop item on spawner to upgrade it. Look at a spawner and trigger getSpawnerData to get spawner data. trigger u spawner.config...
It's my first data pack for the 1.14 snapshots! This time we look at "Tree Pots"...
Auto-magically generate tree-related drops without the hassle of chopping down trees.
This data pack uses commands added in the 1.14 snapshots. It will not function in 1.13
Downloads:
http://mc.voodoobeard.com#tree_pots
Download other data packs at:
http://m...
I don't know anything about datapack/programming so I would really like it if you could tell me what to do step by step or if you could do it for me.
<@&1166082198152159386> <@&1202694677766348840>
Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)
This isn't really the purpose of these channels. We are more equipped to help teach people how to make data packs or solve problems with what they're working on. If you're starting from no experience, updating another person's data pack is not a great place to start, and we're not well-equipped to provide guidance for you if you don't have specific questions or issues.
So I was trying to update these old datapacks because I wanted to use them in the new versions, but I saw that within Minecraft, the commands that I execute manually work normally. But if the datapack itself is not executed/functional. I do what has to be done for the datapack to work and it doesn't work.
Through this I want to learn how to use datapacks.
I want to know what I need to do to update the datapack to the current version. The datapack was version 1.19 1.20 and I want to put it in 1.21.4. I changed the pack format to 61 which is from version 1.21.4. I changed the plural names to singular as there was a change in the snapshots, but even so it still doesn't work.
I came here to ask for help, because I've already been on reddit in communities that deal with datapacks and they said that I had to update to the current version. I updated the Pack format and renamed the folder names and it still doesn't work.
Well, in theory we can start by checking the logs when you /reload the pack to see what errors pop up. I'm sure there will be a lot and it may not give them all to you at once, but a LOT of syntax changed between 1.20 and 1.21.4, so there will be a lot to do.
Certainly it's worth noting that yeach, changing the pack format does absolutely nothing. That is used exclusively as an indicator for what version the data pack says it supports, it doesn't actually fix or update anything the data pack does
My logs from yesterday were supposed to appear and it seems that the file doesn't appear or I can't open the logs, it seems that they are out of date, I don't know.
Yeah we don't want the logs file, you need to actually look at the live output logs at the time you are loading the pack
When making or debugging Minecraft datapacks, it is useful to have the Minecraft logs open in order to view errors quickly.
To open the logs:
- Enable the logs in the Minecraft Launcher (see image)
- Start Minecraft
The logs should open in a separate window. Datapack errors are shown in the when you /reload and are almost always in red text or yellow text.
Every time I reload it reloads the recipes and the datapack generates the item and then stops again.
pls help-me
I don't really understand, can you explain the issue again? Thanks
i send this video to explain.
When you hit /reload the datapack it generated an item in the chest, now it doesn't generate it anymore, but I want it to continue generating the item even without hitting /reload.
In resume, the datapack was supposed to work automatically without pressing /reload.
you understand this video?
?
You put your function definition in the load.json file, but you need to put it in tick.json for it to run on a loop
Oh wait you do schedule it to every 100 seconds nvm
It looks like it should work. The issue might be you build the thing the wrong way round, since the rotation has to be the same each time
I didn't build it wrong, it's like this, look at the datapack video.
It's my first data pack for the 1.14 snapshots! This time we look at "Tree Pots"...
Auto-magically generate tree-related drops without the hassle of chopping down trees.
This data pack uses commands added in the 1.14 snapshots. It will not function in 1.13
Downloads:
http://mc.voodoobeard.com#tree_pots
Download other data packs at:
http://m...
Can you teach me step by step how to do this?
I know, but it depends whether you build it on the x axis or the z axis
Rotating it 90 degrees from what the datapack expects will mess it up
I've built it from several different angles and it always worked, until 1.19 after 1.20 and 1.21 which changed the datapacks it stopped working.
Since you already have a loop set up, it would probably just be easier to change the 100s on the last line to a smaller value like 10s
Which version are you currently using?
How do I resolve the files? What should I do first? What would the code look like?
1.21.4
There aren't any problems that I can see, I'm trying to figure out why it doesnt generate the item
If you run a /loot give @s loot vb:treepots/birch command, does it give you the item?
is right?
# Detect and Loot
# Trees
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_oak_sapling run loot insert ^ ^ ^-1 loot vb:treepots/oak
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_birch_sapling run loot insert ^ ^ ^-1 loot vb:treepots/birch
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_spruce_sapling run loot insert ^ ^ ^-1 loot vb:treepots/spruce
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_jungle_sapling run loot insert ^ ^ ^-1 loot vb:treepots/jungle
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_acacia_sapling run loot insert ^ ^ ^-1 loot vb:treepots/acacia
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_dark_oak_sapling run loot insert ^ ^ ^-1 loot vb:treepots/darkoak
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_mangrove_propagule run loot insert ^ ^ ^-1 loot vb:treepots/mangrove
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_cherry_sapling run loot insert ^ ^ ^-1 loot vb:treepots/cherry
# Fungus
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_crimson_fungus run loot insert ^ ^ ^-1 loot vb:treepots/crimson_fungus
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_warped_fungus run loot insert ^ ^ ^-1 loot vb:treepots/warped_fungus
# Azaleas
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_azalea_bush run loot insert ^ ^ ^-1 loot vb:treepots/azalea
execute at @e[type=minecraft:item_frame,nbt={Item:{id:"minecraft:diamond_axe"}}] if block ^ ^ ^-1 minecraft:hopper[enabled=true] if block ^ ^1 ^-1 minecraft:potted_flowering_azalea_bush run loot insert ^ ^ ^-1 loot vb:treepots/flowering_azalea
# Loot Interval
schedule function vb:treepots/treepots 10s```
Looks okay
how to make tick.json?
You don't need it, the schedule command on the last line makes it loop
Should I remove the schedule?
ok
?
If you want the loop to be faster, change 10s in the function to a different value. 10s means it runs every 10 seconds
Can you put a say the function run command somewhere in the function so that you know the loop works?
Yes, I know that.
how to make this?
Add a line to the function which is simply just: say the function has run
So that whenever the function runs it sends a message to chat which says "the function has run"
It's useful to debug
where should i add this in .mcfunction?
it's ok?
Yes
And now?
Reload, and see if the message gets sent
ok, i'll open the world and test if it works.
the datapack now works, but the message keeps appearing all the time.
Is there any way I can disable this message and make it work without the message appearing?
Just remove the message
We only put it there so we can check the function even runs in the first place
Not sure what exactly fixed it but it's fixed now so yay
but then won't it stop working again?
All that command does is sends a message to chat
It is unrelated
Changing the schedule might have done something
thankyou so much the datapack is working again, now the upgradable spawners are missing.
I don't know what these are
what?
This is a separate datapack?
yeah
this is a other datapack
This datapack works on 1.19 too and due to the 1.20 and 1.21 updates it stopped working.
You should use an automatic upgrader for this like EMU
Lemme find a link
What would be the use of it?
the datapack when you throw certain items into the spawner like lapis lazuli, glowstone, redstone and sugar, it upgrades the spawners but when these items are dropped on top it does not disappear the items in the case it sucks the items, and this is wrong because it was for the items to disappear or in other words suck the items.
to update it to 1.20+
does it automatically update datapack to 1.21.4?
I don't have python because my hard drive is full, and also because I don't use python.
It will be quite difficult to update the datapack manually
Will this python update automatically?
?
Yes, it updates your datapack automatically
and how do i upload the datapack to it?
All the info is in the description of the link I sent
This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.
I can't open it.
I need your help, I was messing with the datapack that treepots, I was going to change the chance of more oak log appearing in the chest I had managed, but I went to add more things the datapack stopped working, then I decided to revert and I couldn't, then I deleted the file, and tried to redo it again, I put the command: say the function has run and it didn't work anymore, can you help me I will be sending the file here.
But this is still the same problem/datapack, right?
or why did you post it in here first?
(you also didn't close the question properly, you just added the tag and closed the post. Please use the bot.)
Yes, I'm having a problem with the same datapack, and I don't know how to use the bot.
I am loosing my mind (not purely because of you, just in general because nobody reads anything and especially in the last few days there were a lot of people with stuff they didn't read even if it was litteraly the message above theirs)