Minecraft Data Packs / Other

Apple teleporter to the point of rebirth.

  • check_circle Functions
  • check_circle Recipes
  • 1,893 views, 1 today
  • 317 downloads, 0 today
  • 13
  • 10
  • 2
Required Resource Pack
MrFraLMan's Avatar MrFraLMan
Level 27 : Expert Crafter
7
Version Minecraft 1.20.1 - 1.20.2
Sorry for my English. I use a translator.


This datapack will add a refund apple. Eat it and teleport home to the spawn point. Thanks to it, you can travel without thinking about "how far to return home". Now it's a matter of 5 seconds. It doesn't matter where you are and in which dimension it will work.

Write a comment and give me a diamond if you like it.

Resource pack?
It will help to distinguish a simple golden apple from a returnable one.


Where to get it in survival?
1. Find in chests in vanilla minecraft structures
2. Create from gold apple, ender pearl, amethyst shard and echo shard. By placing in the crafting table in any way.
3. Go fishing


Where to get it in the creative?
/function tp_apple:give_apple



Let me know if you find an error in the work of the date pack. Or upgrade suggestions.
CompatibilityMinecraft 1.20
Tags

1 Update Logs

Update #1 : by MrFraLMan 11/03/2023 5:05:11 amNov 3rd, 2023

Fixed a bug where other players didn't hear sounds and didn't see teleportation effects.

Create an account or sign in to comment.

Lordphenex
10/30/2023 6:43 am
Level 40 : Master Miner
Lordphenex's Avatar
That is a really good idea and I can see myself using it in one of my worlds !

Just a few remarks though :
- for the giving of the custom item, consider using a loot_table instead of a summon command and a give command. This way, it will be easier to maintain in the future if you want to change something about the item.
- in your tick function, you are calling the load function. That is useless as the load function is already called on the world loading.
- in the ender_apple function, every command is ran as and at the player. You can specify the context out of the function by doing

/execute as @a[​tag=has_eaten_ender_apple] at @s run function ender_apple
- lastly, you can detect when a player eat an ender apple with an advancement (consume_item should work fine). In the reward function, give the player some tag that tell they have eaten the apple.

Hope this helps
2
MrFraLMan
10/30/2023 7:02 am
Level 27 : Expert Crafter
history
MrFraLMan's Avatar
Loading load from the tick function is needed to solve the problem if a person sets the date pack before generation. Since in this case, the load function is not activated.

In fact, I didn't really understand in view of ignorance of the language. At the moment, this is a test version, there are many disadvantages in it, such as non-preservation of HP and hunger. Reading death into statistics. But 'm already working on it. I'm going to add the "mirror"; artifact as well. As a reusable teleportation option. Inspired by the game terraria.
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome