Minecraft Data Packs / Tool

Light Block Editor

  • check_circle Advancements
  • check_circle Functions
  • check_circle Recipes
  • 9,227 views, 2 today
  • 1,018 downloads, 0 today
  • 26
  • 20
  • 8
CurtisDoesADig's Avatar CurtisDoesADig
Level 33 : Artisan Pixel Puncher
37
A datapack that allows survival players to craft the new Minecraft 1.17 Light Block and use a book to manipulate them.

This does not work for Light Blocks placed BEFORE the datapack was added, and it does not work for Light Blocks that are placed by commands.

The crafting recipe for the light blocks are as follows

###
#G#
_C_

Where
# = Glass Blocks
G = Glowstone
C = Copper Ingot
_ = Nothing

To access the Light Editor Book you can title a Book and Quill as Lights


The effects page is in Beta and requires more testing and customization
CompatibilityMinecraft 1.17
toMinecraft 1.19
Tags

6 Update Logs

Update #6 : by CurtisDoesADig 09/07/2022 2:08:45 amSep 7th, 2022

Fixed major bug where Lights that were displayed would not remove the slime from the game after display should be finished. This is because when you display a slime, it needs a box around it. A slime with the Invisible and Glowing effects makes it so we can highlight an entire box area. But it was failing to kill the slime after.
LOAD MORE LOGS

Create an account or sign in to comment.

Lordphenex
09/08/2022 5:35 am
Level 40 : Master Miner
Lordphenex's Avatar
That's a great datapack. You can do a lot of thing with it and add a lot of ambience to builds while in survival.

I have some report to bring to you :
In the load function and in process_player function you enable scores that are not trigger type (lb_help and lb_Player).
Also, since your pack is compatible only with 1.17+, you can use markers instead of item_frame as they are a bit more efficient. You also use @e[type=player] a lot and I think it's less efficient than @a.
In your raycast function, you revoke the advancement from the player. I would have revoked it in the find_payer function because for now, the game will try to remove it multiple times.

I would have put my files into different folder just to make the pack a bit cleaner but that is a really personal feeling. I know changing that type of things when the pack is as complex as yours is a real pain but I think it's easier for maintaining the code. By the way I love the work you did with the functions calling informations.

I hope it helps you with your datapack making. Keep up the good work !
1
Kate1902019
09/08/2022 12:17 am
Level 37 : Artisan Princess
history
Kate1902019's Avatar
I don't know why we can't craft them. Since light blocks are good for decorations and as a light sources that we can't see. That we want to prevent mobs from spawning inside our builds.
1
ArrowsofRain02
06/16/2022 3:53 pm
Level 1 : New Miner
ArrowsofRain02's Avatar
pls update datapack for 1.19
1
A_leagreen
02/05/2022 7:00 am
Level 1 : New Miner
A_leagreen's Avatar
Hi, in 1.18.1, after using Display all in range, the often visible slime seems to remain for a while.
2
CurtisDoesADig
02/19/2022 2:47 pm
Level 33 : Artisan Pixel Puncher
CurtisDoesADig's Avatar
Hmm, I haven't noticed this myself. If you don't mind I'm going to ask a few questions to try figuring out what's going on.

  • Are you playing on a server or single player?
  • How many light blocks are in the area? Just an approximate idea of how many would help.

  • Did anything happen in-between when you chose 'Display All in Range' and when they were supposed to disappear? For example did your game crash, was there a major lag spike, etc.

Thank you for letting me know!
1
A_leagreen
03/24/2022 5:36 pm
Level 1 : New Miner
A_leagreen's Avatar
  • I play on a server using PaperMC.
  • The number of light blocks is about 70.
  • No crashes or major lag spikes.
This could be due to the fact that my server's simulation distance is 5 chunks, which is shorter than the 'Display All in Range' of 100 blocks.

Sorry for the late reply.
2
CurtisDoesADig
03/24/2022 11:47 pm
Level 33 : Artisan Pixel Puncher
CurtisDoesADig's Avatar
That's something I never considered, low simulation distance. The slimes may be summoned in and then aren't in the simulated chunks to unload... I'll take a look and see if I can fix this.
1
Hyperbean18
06/01/2021 3:41 am
Level 16 : Journeyman Dragonborn
Hyperbean18's Avatar
Really Useful, Thanks!
2
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome