#Datapack limitations and resources

1 messages · Page 1 of 1 (latest)

scarlet nebula
#

So I have an outcome for a datapack but how to get there is somewhat difficult due to the limitations of data packs and it’s my knowledge of that is really what’s limiting me how to get from point A to point B. But it’s a fun puzzle none the less
Example I didn’t know you couldn’t do conditional textures for mobs. So I have a few ideas not sure which to persue and I don’t know what if some are worth chasing.

1.) For instance if I have a mob say a baby zombie is there a way to set up a way to trade with it. My assumption is that on spawn I summon an invisible villager at its location. Could I do the same with say a floating player head block. What resource would I use/follow to figure this out. I assume I have to summon the villager and then change his trades once they are available

2.) structure crafting I’m not sure what this is called. But like iron golems are built with blocks then summoned can this also be done with another configuration to like checks a condition?

Like if diamond block is on a furnace in the end then summon
What resource would I use to go through this.

I watched some videos but they are for older versions and I’m sure things have changed from v 1.16 so not sure if they are still the right process.

Thanks

edgy apexBOT
#

<@&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:1742855578: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

knotty wagon
#
  1. Your assumption is correct. I don't understand what resource you would need, you do indeed just summon a villager, but you can set its trades when you summon it.
  2. You can do that kind of thing, either by using a chain of execute if block arguments or (better) a predicate that has many location_check predicates for all the different block positions. Either way, you need some kind of triggering event to determine when to check and from what position, such as a placed_block advancement
scarlet nebula
#

So for number 2.
would you have an advancement check for block placement (say pumpkin) and then on blockplacent you’d have condition is a predicate for what ever configuration set up at the ~ ~-1 ~ location ect then if all locations match reward would be a specific function.
Or is block placement always start reward xyz function and part of the function holds the condition to check for the location?

knotty wagon
#

You'd first need to raycast from the player to find the pumpkin and execute at its position, but then yes

nova pumice
edgy apexBOT
#
Closed for inactivity

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.

edgy apexBOT
#
Closed for inactivity

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.

edgy apexBOT
#
Closed for inactivity

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.