Data Packs Tool

Structure Block Swapper

  • 1.1k views 0 today
  • save_alt 23 downloads
Compatibility
Minecraft 1.19
Changes include
  • Functions
  • Loot Tables
NytroxNinja
Lvl 6Apprentice Miner
1
A small data pack to help you design your buildings.
Use up to nine placeholder "blocks" to swap them repeatedly with your building blocks to find a design which pleases you most.
Also tested with non full blocks like slabs, trapdoors and torches. Also the state will be coppied. Open trapdoor stays open and torch placement direction will also stay the same.

for version 1.1.1
Datapack Size : 153 KB
Datapack Folders : 13
Datapack Files : 53

2 Update Logs

Update 1.1.1 : by NytroxNinja 12/21/2022 4:14:01 pmDecember 21, 2022 @ 9:14 pm UTC

Hotfix:
- path error in tellraw controll
LOAD MORE LOGS

More like this

  Have something to say?

Teayo
12/22/2022 10:43 pm
He/Him • Level 14 : Journeyman Scribe
Also in version 1.1.1 your forceload system don't work. But look at your discord for all info
1
Lordphenex
12/20/2022 1:12 pm
Level 44 : Master Miner
I once made a pack similar to yours and I know how it can be complex to make it work. I feel like your datapack is not as efficient as it could be. First, as Teayo said, not having any comments in the functions makes it really hard to understand what you want to achieve with each function.

There are very different parts in your datapack so it would benefit from having more of a general organisation, like 1 folder for the area selecting part and so on.
I have some general advises and more specific ones.
For the general ones : you can give more than 1 tag to entities and entity search is ressource consuming. Having nested selector can be a good idea as it will increase datapack efficiency and also make it more readable. Something like execute as @e[type=item_frame,tag=blockIf] run function try_place_blocks
in tick function and in try_place_blocks :
execute if entity @s[tag=blockIf1] run function ..
execute as @e[type=marker,tag=block] at @s if block ~ ~ ~ air run kill @s
One other thing that you can improve easily is instead of checking in which direction the filler should go, and having different scenario for each case, you can just get the lowest and highest corners of your cube and set them as pos 1 and pos 2. This way you only have one unique scenario to take care of.
1
Lordphenex
12/20/2022 1:29 pm
Level 44 : Master Miner
Also when you give items to player, you tell them that all the items were successfully given but this can be false. In particular, when in creative gamemode, if the inventory is full, the item won't be given at all. So either you remove the tellraw at the end of the function or you add a way to verify the statement is true (this can be done with execute store sub command).
For giving multiple items, it can be a good idea to use loot_tables so it's easier to use and read
1
Lordphenex
12/20/2022 1:21 pm
Level 44 : Master Miner
Also for what I understand of your datapack, there is nothing changing with your function that goes through all the blocks.
And you can check for scoreboard values directly with "<name> <score> matches <value>"
1
Teayo
12/19/2022 8:56 pm
He/Him • Level 14 : Journeyman Scribe
history
Datapack Rating for Version 1 | Warning it is no longer Version 1 !

I downloaded it. I looked into the Datapack with Notepad++ .
I testet the Datapack in my world.
I wonder that after 1 day after publishing this datapack, unless me, no have downloaded it.
It looks like for me, that other viewers don't see what the datapack can.
Here make NytroxNinja something wrong. (On planetminecraft)

Datapack Size : 24,6 KB
Datapack Folders : 9
Datapack Files : 37

I would rating this Datapack with 50% or 2,5 of 5 stars, because
+ 5,0 stars good idea
- 0,5 star, no function for clean up, after using and clean up world when datapack uninstall
- 0,5 star, controlling via book and fishing rod
- 0,5 no safety / prevent bug situations, no area limitation and forceload chunk
- 0,5 no documentation in datapack : No audios, no videos, no text files, no titles / comments in functions (#)
- 0,5 no contact developer info (as example discord server link),
no advertising for other datapacks from you, in the datapack

What i can say is, as non english player, i am german, it is difficult for me to understand the datapack using.

What i find good for next update ?
* Create a Youtube Video with how to use the datapack
* Make more Screenshots, from using
* More Tellraws, better guide.
* More savefty, chunk forceload, or limitation of area
* Add Information about you in the datapack, including "Contact Me [​Report Bug] [​Have a Question] [​Discord]"
* Additionally change the controlling of the datapack from book and fishing rod to tellraw (i find tellraw controll much better)
2
Lordphenex
12/20/2022 1:26 pm
Level 44 : Master Miner
I feel like carrot on a stick is a good way to let the player interact with the datapack as it is not too intrusive. The book is probably the worst case as you can't see what is in front of you. In this datapack case, using the book is ok because you use it only to get the needed items.
The tellraw option is a good one but you have to constantly exit and reenter the chat so it can be annoying.
1

Welcome