Author Topic: New spawn item  (Read 1353 times)

What would I have to do in order to have another item in my tools when I spawn? And what would i have to do to make my playertype be the 8-Slot player the default playertype?

You would need somthing like what I am working on... (I might never finnish it though. =P)
It is a minigame that starts when the server starts (E.g. you could make a dedicated server and the minigame could be up with no host, admin, or anybody for that matter.)

What would I have to do in order to have another item in my tools when I spawn? And what would i have to do to make my playertype be the 8-Slot player the default playertype?

BTW there is an add-on that allows things like "on minigame join" or "on minigame reset", then you could do a spawn item/add item event, and a changedatablock event.

That's not what he's asking. What he wants to do, is when he spawns in his server, he wants a fourth tool. Not just the Hammer, Wrench and Printer.

That's not what he's asking. What he wants to do, is when he spawns in his server, he wants a fourth tool. Not just the Hammer, Wrench and Printer.
Exactly. I don't want a minigame to start when my server starts. I didn't even mention a minigame.

I believe you would have to use the GameConnection::spawnPlayer function and then add the item to the player's inventory. Make sure you parent it though :)

My new add-on will do somthing similar. It WILL start a minigame, but you won't SEE the minigame in any way. This way you can choose that stuff without it looking like you have a minigame. Good enough?

My new add-on will do somthing similar. It WILL start a minigame, but you won't SEE the minigame in any way. This way you can choose that stuff without it looking like you have a minigame. Good enough?
I don't believe it would be very easy to hide the fact that they are in a minigame.

You could modify that giveDefaultEquipment() function the player has; that's probably where it'd fit best.

I believe you would have to use the GameConnection::spawnPlayer function and then add the item to the player's inventory. Make sure you parent it though :)

Dont listen to him, he insane parenting things is madness.

(I am not telling the truth.)

Dont listen to him, he insane parenting things is madness.

(I am not telling the truth.)
I ALMOST stuff bricks ;)