Tell me more ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I'd like to give some firework items to a player, using a dispenser, or via some similar mechanism. How can I do this? Is it possible?

share|improve this question
1  
fireworks? is that new? – Paralytic Dec 21 '12 at 18:28
@Paralytic yea its for the new year – spartacus Dec 21 '12 at 18:29
However activating them in the Vanilla 1.4.6 multiplayer server will disconnect the player wielding them with an "End Of Stream" error. Still, I can't help but look forward to what the community will create with Fireworks and Note Blocks. – tombull89 Dec 21 '12 at 19:27
Put a firework in a chest with a sign saying "fireworks here". – jeffreylin_ Apr 14 at 16:56

6 Answers

up vote 6 down vote accepted

Unfortunately, when using a dispenser, the fireworks leave the dispenser armed, so that isn't much good.

Firework in dispenserLaunched firework

Also becuase the fireworks all share an ID, 401, command blocks can't be used (it just spawns a firework with no explosion in it).

You can however use spawners to spawn the dropped item entity (one of Seth Bling's scripts can be used) but these are harder to control, and limiting the amount of items the player gets can be tricky.

Dropped item entity Using MCedit to make the spawner Spawned from custom spawner

Note this technique can be used to spawn any custom item, such as enchanted weapons and custom potions.

share|improve this answer
Can't you use the data values with the /give command? – MBraedley Dec 21 '12 at 18:48
4  
@MBraedley Fireworks don't even have data values, due to the number of different combinations of stars and fuse lengths it'd be impractical, they have the type of firework stored in their tile entity, like how books store their text. – Ronan Forman Dec 21 '12 at 18:53
This could be updated to mention the new Dropper. – SevenSidedDie Mar 23 at 8:22

The upcoming Dropper block in Minecraft 1.5 will likely be usable for this purpose. It acts exactly like a dispenser, except that it always gives items rather than activating them, so it will not launch fireworks.

share|improve this answer

Because fireworks have weird metadata I made a tool to make fireworks easy. They are saved as kits so if you want players to have them, just give them access to the kit. You can find the tutorial at

and the download link will be in the description.

It's really simple to make complex and custom fireworks using this method.

share|improve this answer

If you're playing on a CraftBukkit server, the Essentials plugin has a /firework command. You could give your players fireworks through the /give (item code 401) command and then let the players "customise" the fireworks with the /fireworks command.

The syntax for the command is (and will be applied to the stack of fireworks currently held in-hand)

/firework color:color fade:color shape:shape effect:effect

You can choose three colours for the inital burst using /firework color:red,blue,green. You can also choose the shape by using /firework shape:star,ball,large,creeper,burst (one of those 5) and change the effect with /firework effect:trail,twinkle. Power (flight) settings can be ajusted with /firework power:1,2,3

So, do a /give 401 for 64 fireworks, and then for a firework which bursts red, blue and green, does a large ball effect, twinkles/crackles and has maximum flight height you can use:

/firework color:red,blue,green shape:ball effect:twinkle power:3

share|improve this answer
This could be combined with command blocks, too. – SevenSidedDie Feb 22 at 17:25
@SevenSidedDie, would (or do) Command Blocks work with plugin commands? – tombull89 Feb 22 at 17:53
I can't confirm from experience, but they seem to from what I've read. – SevenSidedDie Feb 22 at 17:54

I have not tried this yet but I was thinking you could do this with a few Bukkit plugins - WorldEdit, Citizens, and Denizen.

  1. Create a chest and fill with the various fireworks you wish to give out.
  2. Using WorldEdit copy and save the chest as a schematic.
  3. Using Citizens and Denizen create a script that creates and uses a NPC (Non-Playable Character) to ask and offer the fireworks to players.
  4. In the Denizen script loads and reloads the chest schematic each time a player interacts with the NPC or just automatically reloads the chest after a set period of time.

I believe this should work as Denizen scripts allow you to load WorldEdit schematics.

share|improve this answer

You may leave it in a chest. then he will get it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.