Please never stop doing these videos. They are so so helpful
@lukidon87153 жыл бұрын
Your like the hero we need but dont deserve, I'm working on a custom skyblock map that requires me to make alot of custom mob data packs, this was so helpful!
@steven.26023 жыл бұрын
**IMPORTANT FOOTNOTE ON FAKE PLAYERS** TL;DR: _ALWAYS_ add an impossible character (I recommend ".") to your fake players. Since the fake player only appears if no player matches the name given in the selector, there is always a small chance that your "fake player" may have the exact same name as a real player that just so happens to be playing with your data pack, whether it be on singleplayer or multiplayer. Fixing this is easy. Since some characters aren't allowed to be put in player names, adding them to your fake player will ensure that it will never be mistaken as a real player. example: If i wanted a fake player called "health", I'd name it ".health" so that if there is a real player with the name of "health" using my data pack, it will not be mistaken as the real player. Otherwise, this is a super helpful tutorial, thank you for all the work you put in for the MC command community, it is truly amazing what you do!
@icebuds74554 жыл бұрын
for everyone that didnt understand: dummy players are basiclly variables that hold a number, that number is changable and can be accesable. incase u want to have a variable that holds a string or an array use data storage (u can use numbers in there too its just less efficent).
@smartntboy24744 жыл бұрын
O yes thankssss this makes it so much easier lmao can’t wait for the custom animations video
@alvhawk44612 жыл бұрын
idk if u talked about it in a video already but predicates are really good for random chances because you can just make a file with any percent u want and the command will work that percent of the time its really helpful for things like spawning or even attacks if you dont want them to happen like clockwork but rather a stuttering clock
@manuelocana80744 жыл бұрын
I found an actual random way of spawning the mob: create a predicate with the following: { "condition": "minecraft:random_chance", "chance": 0.5 } This will generate a random number from 0 to 1 and if that number is greater that the "chance" it will return true, so in this case this is a fifty fifty chance, so the mob will spawn 50 percent of the time. Then write in a loop function: execute as @e[tag=!spawned, type=minecraft:YOUR_MOB] run function namespace:spawn_chance So this will execute as the mob you want to replace with your custom mob and will run the spawn_chance function In the spawn_chance function you simply put: tag @s add spawned execute if predicate namespace:random_fifty at @s run function namespace:spawn This will tag the mob so it wont repeat the same function, and will run the spawn function, wich will do the actual spawning. In that function you want to put: summon YOUR_CUSTOM_MOB tp ~ ~-300 ~ kill @s
@coledog102 жыл бұрын
This was a lifesaver, thank you
@Austeja608 Жыл бұрын
i doesnt work
@gabegaming92224 жыл бұрын
Thank you so much! I will try this out as soon as possible!
@rajsamal9964 жыл бұрын
Ok 👌:-)
@dpdprincess4 жыл бұрын
I was waiting for it. Thanks
@sebastiansolis82784 жыл бұрын
You can also use predicates to give each scanned mob a random chance of becoming a custom mob :)
@TimberForge4 жыл бұрын
Yup. For this method I just wanted to keep it to commands though, cause i dont usually need additional randomness since the scanning selection order is random already.
@omnimorris4 жыл бұрын
So incredibly helpful! Thank you so much! Can’t believe I wasn’t already subscribed
@jdawgtor4 жыл бұрын
This was great! Thanks for showing this. :D
@jdawgtor3 жыл бұрын
@@hank1398 Yes, hello! Glad you enjoyed it :D
@Stulejon4 жыл бұрын
Dude, I mean, you're a fucking legend. Thank you for this, you unlocked to me so many possibilities
@sixtealbisetti24803 жыл бұрын
The datapack template works but at the moment I change one value it immediately stops working, even if I undo the change afterwards. Playing in 1.16.5
@louislemur4 жыл бұрын
Great dude keep up the great work!
@sirwaddlesvonwaddles43933 жыл бұрын
Can you further explain how I can randomly spawn multiple different custom mobs?
@random_user24694 жыл бұрын
yesss thankss!!!... BUT could you explain how make mobs spawn naturally at structures?
@alesandrodemoor4 жыл бұрын
Really helpful! But is there a way to make multiple variants of a regular mob (for example 4 variants of a zombie) and make them all naturally spawn by swapping all 4 from zombies?
@TimberForge4 жыл бұрын
You should be able to instead of just spawning on 0, spawn on 1,2,3 and 4. So anywhere where it detects on 0, duplicate the commands for other scores.
@djimie2 жыл бұрын
Hey! I did everything you said, but its not working. My custom mob is a ghost and i want it to spawn at a 1/20 chance with phantoms. i did everything you said but it wont work. Is there maybe a step i am missing? I thought it might have been something with the not_mob1 tag, but idk. Please help!
@Cleocyde3 ай бұрын
is there a way to do that without replacing existing blocks? I'm making a map, and mobs wont spawn naturally, because the entire map will be filled with light blocks
@kaley24494 жыл бұрын
Thank you for making this video. I am Spanish and I did not understand it completely, but I will. If someone who knows Spanish help me, I will get stuck in the execution.
@spikeanimate3742 Жыл бұрын
Hey I am trying to make two of these packs but when I put them in game with each other only one of them works.
@moixalaYT2 жыл бұрын
what are the commands? im trying to make a smp where i need some naturaly mobs i need the commands so i can perform them
@tommytommy96872 жыл бұрын
Wait, so if I use it on zombie, won't the custom mob will spawn from a spawner too?
@Nanodelabarra4 жыл бұрын
thanks man
@TheOnlyBoswell3 жыл бұрын
Ive followed every step, and so far all that happens is maybe a few zomvified piglins disappear, my custom mob never spaws, any help? Thanks:)
@hank13983 жыл бұрын
Is there anyway to put this into command blocks?
@TimberForge3 жыл бұрын
I recommend you make a data pack, it’s not that hard and there are many tutorials. But if you really need to do it in command blocks, then you can create a long repeating chain for the loop function, the load function is a chain you run manually, and then every time you need to run a function, you would have to repeat the execute command that runs on the entity for every single command you run. For example if there are 5 commands in the summon function, and you are running the summon function at all pigs, you would need to make a chain that is activated by your loop (by setting a redstone block or something) and each command in the summon chain would have the execute part of the command that makes it run as pigs.
@hank13983 жыл бұрын
Thx
@nickysilverstein41133 жыл бұрын
it was working earlier but now its not, i think the tp command is tping the spawned (custom) zombie instead of the one that spawned from the egg/naturally. I spawn the first one and it takes no knockback for a second and then it does, this doesn't happen for the others.
@nibblecat12234 жыл бұрын
Its not working. I suspect it has some sort of problem with the scoreboard? It doesn't show up in my screen, I don't think it ever starts.
@miguelmiguel81282 жыл бұрын
Is there a way to make the "scanned" mobs, those with the tag, naturally despawn ? Because giving them a tag makes them persistent and it increases lag to have hundreds of persistent mobs...
@TimberForge2 жыл бұрын
Yeah sure just tp them into the void when past a range of the player. Detect them with the tag and entity type target selectors
@worsethanem36602 жыл бұрын
do you put all the commands in a repeating command block?
@J_TheUsername4 жыл бұрын
Amazing video. If I may ask, is there a way to make the data pack detect the custom mob? Let's say I want to make a custom mob replace another custom mob, what should I enter in the loop.mcfunction?
@TimberForge4 жыл бұрын
Just detect the tag.
@meepthewizard12404 жыл бұрын
yesssssss
@LemonChad4 жыл бұрын
Here's another method: Use predicates with the type random_chance
@sonandheir134 жыл бұрын
if i am adding mobs for different dimensions like nether and the overworld, what would i have to do for the execute/loop function command?
@TimberForge4 жыл бұрын
You could add a predicate for detecting if entities are in certain dimensions. I have an example somewhere in my portal video.
@B.R.I.N.E.3 жыл бұрын
Hi Timber Forge, I Wanted To Know That I Am Creating A Custom Villager Datapack In Which They Spawn Randomly In You World, But I Can't Figure Out How Can I Make Them Spawn In Randomly.
@clancysleepovergetyourblankies3 жыл бұрын
Thats basically what he explains in the video xD
@jakubkarel23364 жыл бұрын
Hi, i recently started making datapack about illagers, because i wanted some challenge, i made models, everything, now i would be glad if you are making animation tutorial and just little thing, i set model to the head slot, so when mob is looking up, the whole model will just look strange, if you know what i mean, it just angle itself and its really stupid looking, will you make video about that? Or we can write in dm, i would be pretty glad ❤
@TimberForge4 жыл бұрын
Not sure what you mean by stupid looking. Is your mob not invisible and the head sticks out? Is it just not looking up and you want it to look ip?
@TimberForge4 жыл бұрын
Animations will come out in the fourth episode most likely.
@jakubkarel23364 жыл бұрын
It tilts if you know what i mean, my custom mob is based around custom model data on his head, and he hasnt really no limbs, like when he look up, his whole body will little look up, i seen it in lot of modpacks so i would be glad if you show us how to prevent it, Thanks for your videos, all of datapacks tutorial in yt , you made it most clear and understandable 💪
@TimberForge4 жыл бұрын
Ohhh i think i know what you mean. You can make a command which just forces the y rotation of the mob to be 0, try that. Use data merge, and if you dont know the syntax, then use data get to check it.
@vocalsunleashed3 жыл бұрын
Won't it look weird when you see a zombified piglin spawn naturally but it disappears and is replaced with the custom mob?
@TimberForge3 жыл бұрын
That would only happen if you happen to see the zombified piglin *right* as it spawns, because it only attempts the spawn once as soon as it is found, and then never again. So I dont think it would be any weirder than seeing any normal mob pop out of nowhere.
@saucedbox51384 жыл бұрын
Do you know why my load.mcfunction file dosent work?
@TimberForge4 жыл бұрын
There are many reasons that could happen. Does your data pack work? Did you add a load.json next to tick.json? Watch the mandalorian lets code for an example.
@v1there4 жыл бұрын
thanks
@poe1235 Жыл бұрын
Mobs can despawn naturally?
@CharlyMachine4 жыл бұрын
This helped me A LOT. Thank you very much. I'm trying to make Ghast spawn in the End and it worked, but I need your help, please. I replaced enderman (you did it for pigman) but I want it to detect if it's on end stone, so it only works in the End and not with enderman spawned it the overworld.
@TimberForge4 жыл бұрын
Dimension might be in the nbt, but if not, i think you can create a predicate to detect the dimension in misode.io. Detecting endstone is easy, in the function that detects if the score matches 0, also add a “if block ~ ~-1 ~ end_stone” into the execute command.
@CharlyMachine4 жыл бұрын
@@TimberForge Thank you. I modified the spawning line like this: execute if score mob1_count cm_example matches 0 in minecraft:the_end run summon minecraft:ghast ~ ~ ~ and it seems to be working
@jeremiahzagala56084 жыл бұрын
Any chance you could share your sublime preferences? I tried setting syntax to java but it still doesnt seem to color coordinate and organize the same as yours, even when i change the color scheme. Thank you :)
@TimberForge4 жыл бұрын
I used VS Code in this video with some random mcfunction or data pack extension I found, I might switch to Atom, but idk. I use sublime when editing .json files, nothing I ever open is actual Java code, so it should be set to .json. You could also probably find an mcfunction addon.
@jeremiahzagala56084 жыл бұрын
Timber Forge ah ok thank you for the info! When I’ve finished what I’m making I’ll show you! Your videos have been very helpful 😊😊
@rikyprinz47604 жыл бұрын
Is it normal that the summoned mob doesn't move? I tried to summon a polar bear with an armor stand with flint, like you did in the last episode. Anyway thank you
@TimberForge4 жыл бұрын
Its movement shouldnt be affected. Maybe go into survival mode and punch it? Make sure its not NoAI.
@Wesley-er7nm4 жыл бұрын
Is there a reason why I can't hold many commands in the loop and mcfunction or can you only have a certain amount of commands?
@TimberForge4 жыл бұрын
There shouldnt be a limit, what do you mean? It lags? Or you can’t type it im?
@Wesley-er7nm4 жыл бұрын
@@TimberForge I've figured it out i had my scoreboard wrong
@Wesley-er7nm4 жыл бұрын
@@TimberForge I just forgot to change the comment
@bjarnes.44234 жыл бұрын
thx
@bjarnes.44234 жыл бұрын
If someones function isn't working, check the Minecraft log for errors
@nautica_joestar4 жыл бұрын
and how do I remove the scoreboard to not show everytime?
@TimberForge4 жыл бұрын
Scoreboard objectives setdisplay If you dont specify a scoreboard to display it removes it
@oxign7054 жыл бұрын
How can u make a specific mob detect a certain biome
@TimberForge4 жыл бұрын
That uses predicates, here is a generator for them. misode.github.io/predicate/
@zalmorc59494 жыл бұрын
Where is part 3?
@jax34534 жыл бұрын
The armor stand 2 commands is only for custom mobs, if I want to summon a common mob like a zombie bit with a full Diamond set, do i have to use those commands?
@TimberForge4 жыл бұрын
Nope, the armorstand is for model display. You can just use mcstacker.net and customize from there.
@jax34534 жыл бұрын
@@TimberForge wow, super fast, thank you so mucho dude!!!
@jax34534 жыл бұрын
@@TimberForge i have been trying but it does not work :(
@TimberForge4 жыл бұрын
What part? Giving a zombie armor is pretty straightforward.
@jax34534 жыл бұрын
@TimberForge i have done all you told but doesn't work
@jafdell4 жыл бұрын
Hi! Great tutorial! Do you think It’s also possible to make monsters spawn naturally during the day at full full light levels?
@TimberForge4 жыл бұрын
It is definitely possible, but i am not sure of the most efficient way of doing it. One way is to maybe periodically run a summon mob attempt function that uses spreadplayers with armorstands to randomize the spawning location, and then run whatever other checks you want like player distance or biome or whatever to determine if a spawn will happen, then summon mobs on the entities where the check succeeded.
@Soullessangel02 жыл бұрын
@@TimberForge Hi, is this possible with optifine random entities? The other option is to make these custom mobs spawn with nametags. Is there a way to do this?
@rodt-A4 жыл бұрын
I am trying to make Minecraft trident texture pack, but I can't make it So I want you to tell me how to make Minecraft trident texture pack. Please, I beg of you.
@TimberForge4 жыл бұрын
Tridents are hardcoded into the game and cannot be changed, the same goes for armor. You could use a snowball though.
@roostergamerbubsy3d3 жыл бұрын
Nice tutorial, but as a Bedrock player, why do all of this command stuff if you can just make a couple of json files and a resource pack and you can even create new mobs with a separate entity string? I hope Java Edition gets something like the Add-on API in the future, Datapacks are extremely limited.
@Heyratdtyrhrn3 жыл бұрын
I agree but minecraft java mods make minecraft bedrock addons look like nothing.
@gaminganimators70003 жыл бұрын
What version does this work on?
@TimberForge3 жыл бұрын
Should work on any above 1.13, but syntax may need to be shifted around a bit depending on ur version.
@twizzstix27253 жыл бұрын
@@TimberForge Does this only work for Java or does it work for Bedrock? I assume it just works for Java but I'm just askin'.
@TimberForge3 жыл бұрын
Java
@iheartstriders4 жыл бұрын
This might seem kinda dumb, but I'm allowed to use this code in my data pack right? I'll credit you, Just making sure. Amazing video!
@TimberForge4 жыл бұрын
Yep you can
@iheartstriders4 жыл бұрын
@@TimberForge Thanks!
@nicolasarbelaez89434 жыл бұрын
is there any way to put it in commands?
@TimberForge4 жыл бұрын
You you mean command blocks yeah, the load function would be a command block chain you run yourself, the loop is a repeating chain set to always active.
@TextroGamer4 жыл бұрын
to put more mobs need to change the mob1_count or what? help!
@TimberForge4 жыл бұрын
To add more mobs you dont need to touch anything that is specifically for mob1. Anything that is for mob1 would need to be duplicated. So you would have another fake player that would be mob2_count.
@TextroGamer4 жыл бұрын
@@TimberForge i need to change all the mob1_count to mob2_count? is beacuse this doesn't work for me, yes i put /scoreboard objetives add mob2_count cm_examples. sorry for not understand
@TimberForge4 жыл бұрын
Everything you did that applies to mob 1 you need to duplicate for mob2.
@rosek65854 жыл бұрын
SiXtH! Why isn't this video public?
@TimberForge4 жыл бұрын
What how did you get here lmao?
@TimberForge4 жыл бұрын
Ohh shoot I added it to a playlist lmao frickaroo. Ok i need to not do that. I uploaded it last night and was gonna release it in the day time.
@trilo_boy4 жыл бұрын
@@TimberForge lmao 😁
@nicolasarbelaez89434 жыл бұрын
Buen video, pero se puede hacer que el data pack funcione para más mobs, explico que puede hacer que funcione para varios mobs. Good video, but you can make the data packet operate for more mobs, explain that you can make it work for multiple mobs.
@ishanjha27763 жыл бұрын
just make another folder for another mob in function folder
@mostspecialepanchforanchan2434 Жыл бұрын
Bro just use predicte
@Ganonpork4484 жыл бұрын
so I did a zombie for my creature and summoning it with command blocks worked fine but the natural spawning didn't work here is the code from each three areas. laod.mcfunction had tellraw @p {"text":"--- Timberforge's Mob Demo Loaded ---","color":"green"} ######## Create Mob Counting scoreboard for all custom mobs in this pack ######## scoreboard objectives add cm_example dummy #### Mob1 #### #### Fake players scores for keeping track of mob1 # Increases every eligible mob scanned scoreboard players add mob1_count cm_example 0 mob1_spawn.mcfunction had #### EXECUTE AS AT ELIGIBLE ZOMBIE ## If matches 0 execute if score mob1_count cm_example matches 0 run summon zombie ~ ~ ~ {Silent:1b,CustomNameVisible:1b,Health:100f,Tags:["space_demon"],CustomName:'{"text":"Space Demon","color":"gold","bold":true,"italic":true}',ArmorItems:[{},{},{},{id:"minecraft:flint",Count:1b,tag:{CustomModelData:823}}],ArmorDropChances:[0.085F,0.085F,0.085F,0.000F],ActiveEffects:[{Id:14b,Amplifier:1b,Duration:9999}],Attributes:[{Name:generic.max_health,Base:100},{Name:generic.movement_speed,Base:0.2},{Name:generic.attack_damage,Base:30}]} execute if score mob1_count cm_example matches 0 run tp @s ~ ~-256 ~ ## Add tag tag @s add not_mob1 ## Increment count scoreboard players add mob1_count cm_example 1 # Reset count execute if score mob1_count cm_example matches 5 run scoreboard players set mob1_count cm_example 0 and loop.mcfunction had # Mob1 zombie Rotation execute as @e[tag=space_demon,type=minecraft:zombie] at @s store result entity @e[type=minecraft:zombie,tag=space_demon,limit=1,sort=nearest] Rotation[0] float 1 run data get entity @s Rotation[0] # Mob1 kill stranded zombie execute as @e[tag=space_demon,type=zombie] at @s unless entity @e[type=zombie,tag=space_demon,distance=0..1] run kill @s # Mob1 Spawn scan execute as @e[type=zombie,tag=!not_mob1,sort=random] at @s run function mob_demo:mob1_spawn yet none of my space demons would spawn off a zombie. Can you help?
@TimberForge4 жыл бұрын
I dont have time to look at the whole thing, watch my troubleshooting vid.
@Ganonpork4484 жыл бұрын
@@TimberForge so I did and then I encountered a new problem when my mob landed in water the armor stand or flint on top died.
@TimberForge4 жыл бұрын
Oh yeah i have heard of people having that issue. If you are using a zombie why not just put the item on his head?
@Ganonpork4484 жыл бұрын
@@TimberForge I did but it wouldn't naturally spawn or move correctly.
@TimberForge4 жыл бұрын
I would try to fix that instead of using armorstands. Read the console for the error message or display the scoreboard to check if its working.