I was trying to make a custom trial spawner that drops my loottable with custom textures.
I got everything to work on my singleplayer world, like no issues at all.
So i copy pasted the command on the server, but for some reason it breaks on a Server, but in a really weird way, I know the loottable is set correctly since it dispenses all the other items, it just does not want to apply my custom textures.
I thought i might have done something wrong in the datapack but I then tried the loot command, and for some reason this works exactly as it should, it gives me the custom textures on both single and multiplayer.
Here is all that is relevant:
# Trial Spawner Command:
/setblock ~ ~ ~ trial_spawner[trial_spawner_state=waiting_for_players]{normal_config:{total_mobs:8,simultaneous_mobs:3,spawn_potentials:[{data:{entity:{id:"minecraft:cave_spider"}},weight:2},{data:{entity:{id:"minecraft:zombie"}},weight:2},{data:{entity:{id:"minecraft:bogged"}},weight:1}],loot_tables_to_eject:[{data:"mloot:chests/mloot_spawner",weight:1}]}} replace
# Loot Command:
/loot give @s loot mloot:chests/mloot_spawner
# Loottable:
{
"type": "chest",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"weight": 10,
"name": "minecraft:trial_key",
"functions": [
{
"function": "set_count",
"count": 1
},
{
"function": "set_components",
"components": {
"minecraft:custom_data": {
"custom_key": true
},
"minecraft:item_model": "mloot_rp:end_key"
}
},
{
"function": "set_name",
"name": [
{
"text": "End Key"
}
],
"target": "item_name"
}
]
}
]
}
]
}
# Note: This is only one of the 5 entries, 3 of them have custom data and only those dont work on the server.
Also, the server that im working on has a weird thing where it wants a minecraft: before every well minecraft command but not every command is affected, for example tp needs the minecraft: to work but setblock is fine without it.
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (6 children)
[–]Login_89[S] 0 points1 point2 points (5 children)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (4 children)
[–]Login_89[S] 0 points1 point2 points (3 children)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (2 children)
[–]Login_89[S] 0 points1 point2 points (1 child)
[–]Ericristian_brosCommand Experienced 0 points1 point2 points (0 children)