Minecraft Data Packs / Server Utility

Rooms - Fireworks Composer Add-on

  • check_circle Functions
  • 1,070 views, 2 today
  • 22 downloads, 0 today
  • 18
  • 11
  • 1
Bertiecrafter's Avatar Bertiecrafter
Retired Moderator
Level 70 : Legendary Engineer
775

This data pack allows you to mark Fireworks Composer rooms to be limited to 1 player


Features
  • Limit rooms to only allow 1 player.
  • Automatic Fireworks Composer chest reset when the player leaves.
  • Room becomes available again when the player exits the game.
Instructions
Start by creating the rooms (using ordinary blocks) and placing fireworks composer chests inside. Then use the following commands to set up a room:
# Place red/lime concrete indicator block at your feet
/function bertiecrafter:fwcpr/room/create_indicator
# Mark an existing button that's in the same block as your feet as entrance/exit
/function bertiecrafter:fwcpr/player/mark_entrance
/function bertiecrafter:fwcpr/player/mark_exit

The data pack makes use of several assumptions in order to "understand" where the room is from just a few buttons. Those assumptions (requirements that you need to meet) are:
  • Every room has a marked entrance and exit button, indicator block and a fireworks composer chest. (In spectator mode you should see armor stands at the buttons after marking them.)
  • The indicator block closest to the entrance/exit buttons belongs to the same room.
  • The entrance button closest to an exit button belongs to the same room.
  • The exit button closest to an entrance button belongs to the same room.
  • Players cannot enter/exit the rooms without using the buttons. Use "/tag <player> (add | remove) bcfwcpr_inside" to (un)mark players as being inside a room when they did not use the buttons.
  • When a player stands the furthest away from the exit button, the closest exit button should be the one of that room.
  • The fireworks composer nearest to the indicator belongs to the same room.
  • No matter where the player is in a room, the closest fireworks composer should actually be in that room.

Tips
To get the most use out of this data pack, choose to add the following extras to a room:
  • You might want to make it look like the rooms have entrances. Use a sideways placed iron door that's always powered or place barrier in front of a wooden door to give it an entrance, while still preventing players from entering/exiting the room without using the buttons.
  • You could add extra buttons to give players firework rockets or toggle lights.
  • The data pack comes with a hopper filter. Stand inside a hopper and run "/function bertiecrafter:fwcpr/hopper/add_filter" to automatically delete anything that's not a firework rocket with at least one explosion from the hopper. Note that there cannot be any hoppers underneath the filtered hopper.
Enjoy! =)



Install Instructions
This is a datapack, it can easily be used in any world or server without any difficulties.
Simply drop the downloaded zip file in the "datapacks" folder of your world save (<world>/datapacks).
Then open your world and do
/reload

In case the datapack doesn't automatically get enabled, run:
/datapack enable "file/[​datapack folder name].zip"

Does this work on version x.x.x?
I don't know, unfortunately I can't check all of my submissions on each version out there. Have a look at the bottom of the submission for the known compatible versions. You're free to try the data pack in versions that are not specified with the risk of it not working. If it does work, let me know in the comments so I can adjust the listed known compatible versions.

I encountered a bug! What do I do now?

I test all my creations, but bugs happen no matter how long you test something. Whenever someone experiences a bug, I do my best to fix the issue. You can help me by providing any useful information. You can never give me enough information, but please send it in a DM instead of placing it in the comments. You can still place a one-liner in the comments stating the issue to make the community aware, but that alone isn't enough to help me fix the issue.
  • Checklist: Are you using the right version? Did you do /reload after dropping the datapack in? After /reload, does the datapack show up green in /datapack list?
  • What is the issue? Does the datapack not seem to be working at all or is there a specific feature you are having issues with?
  • What happened? Please give me all the steps needed to reproduce the issue. The faster I can experience it, the faster I can solve it.
  • What did you expect to happen instead? This helps me understand your point of view and determine if the issue described is actually the issue I need to fix. The bug you are experiencing could just be a side effect of something else that doesn't behave as expected.

Rooms - Fireworks Composer Add-on Minecraft Data Pack
Rooms - Fireworks Composer Add-on Minecraft Data Pack
CompatibilityMinecraft 1.16
toMinecraft 1.18
Tags

Create an account or sign in to comment.

1
01/01/2022 12:46 pmhistory
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
Thank you PsioPsia001, MJ_mcMaster, Europe, OptimalFlash, FishStacks, DaniAdler, youtubesquod, HeccFeesh, Flashbulb, RandZ, McMeddon, David95, KateGirlSK, Vellariya and Aspirin60 for the diamonds!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome