just like the title says.. i am curious if it is possible to spawn an item and have it appear in-front of the player of your choosing . the reason why i am asking is because i wanted to add the Recycler to my ServerRewards plugin but i can't seem to get it to work. everytime the item spawns , it spawns to 0,0,0 and not to the player . even if i put $player.id or $player.name or even $player.X $player.Y $player.Z . when they redeem the item from the shop gui it just spawns it to (0,0,0)
Solved Spawn item to player
Discussion in 'Rust Discussion' started by rp4k, Jul 29, 2018.
-
there is a plugin that gives the player a recycler and the player can put it himself wherever he wants
-
yah but i am trying to add it to my serverrewards list.. so i want there to be some random spawn stuff in there.. like a recycler. a few animals and maybe some resources. or buildings. so that is why i am trying to figure out how to spawn something at a select location.
"commands": {
"Recycler": {
"displayName": "Recycler",
"description": "Spawn Personal recycler",
"iconName": null,
"commands": [
"spawn recycler_static $player.name "
],
"cost": 70
}
that is how i have it in my spawnrewards/data / rewards_data.json/ but something is wrong .. it spawns always at 0,0,0
i have even tried. $player.X $player.Y $player.Z and i have tried $player.ID
still spawns at 0,0,0Last edited by a moderator: Jul 30, 2018 -
Code:"commands": { "Recycler": { "displayName": "Recycler", "description": "Spawn Personal recycler", "iconName": null, "commands": [ "spawn recycler_static \"$player.x $player.y $player.z\"" ], "cost": 70 }
-
-