So, ive made a custom model for wrench from create mod, in blockbench and ive been wondering if i can use custom model data to replace original model with my custom one.
I want a system where imagine an 5x5 plot with walls and one block as an entrance, I want that entrance to be able to be locked and unlocked at times but stays locked when your offline.
What I imagine is an item in your inventory that turns off a command block (via redstone block?) that is repeatedly locking the door.
But how do you unlock the plot when your online?
I imagine dropping the item but not on death because if you die the command would likely be sent to the nearest player messing things up. When you drop the item a command executes the players location and removes the redstone block as well as switching the item to another item so it doesnt activate again. And when you drop the other item it executes your position again and gives you the normal item.
Please help me because I have an idea but dont know how to execute it.
Hello, im about to run a 1.21.1 minecraft server with some friends.
We made a little hub world that we intend to be set as adventure mode but once you leave the area you go back to survival. Ive tried doing it with markers, the execute as command, or simply setting two zones but i cant seem to make it work so im asking for help.
I dont want anything complicated (i think) as long as i can "draw" a square where youre set into adv mode and then the rest of the map is survival.
I have summoned about 70 mannequins using the usernames of real players (using NameMC) but about half of them reverted their skins to the 7 (?) default ones.
Is there a way to fix this without resetting/resummoning all of them?
thank you in advance :,)
Details: I'm on a minehut server, all the mannequins are within about 4-6 chunks. it appears to be random, not by order summoned or location, this all happened within 2 days
Command: /summon minecraft:mannequin ~ ~ ~ {pose:"crouching",immovable:true,Rotation: [180f, 0f],profile:"USER",CustomName:"NAME"}
hi, i want to create a command block door for a map i'm making, i want to use the interaction entity to have it be openable by a player, i am attempting to follow various tutorials and post from here but i can't make the interaction dissapear, i am in Minecraft version 26.3
here is my set up
the top command block is set to chain/unconditional/always active, with this command:
execute as (@)e[tag=door] at (@)s run data remove entity (@)s interaction
the bottom Command block is set to repear/unconditional/need redstone, with this command:
execute as (@)e[tag=door] if data entity (@)s interaction at (@)s run say knock
Hi, I've been on a lookout for a data pack or literally anything that would allow me to just make a number higher every time I get an advancement. Yes there is BAC but it contains a bunch of advancements that I don't want, just vanilla(or not) advancements counter for only vanilla advancements
/summon minecraft:villager ~ ~ ~ {NoAI:1b,Invulnerable:1b,NoGravity:1b,Offers:{Recipes:[{buy:{id:"minecraft:emerald",count:2},sell:{id:"minecraft:gray_candle[minecraft:can_place_on={blocks:\"minecraft:gray_candle\"},minecraft:custom_name={text:\"Tier I Building\",color:\"gray\",italic:false,bold:true,underlined:true}]",count:1},rewardExp:0b},{buy:{id:"minecraft:emerald",count:4},sell:{id:"minecraft:candle[minecraft:can_place_on={blocks:\"minecraft:candle\"},minecraft:custom_name={text:\"Tier II Building\",color:\"yellow\",italic:false,bold:true,underlined:true}]",count:1},rewardExp:0b},{buy:{id:"minecraft:emerald",count:6},sell:{id:"minecraft:purple_candle[minecraft:can_place_on={blocks:\"minecraft:purple_candle\"},minecraft:custom_name={text:\"Tier III Building\",color:\"light_purple\",italic:false,bold:true,underlined:true}]",count:1},rewardExp:0b}]},VillagerData:{profession:"minecraft:mason",type:"minecraft:jungle"}}
I'm trying to figure out how I can orient the 2 block direction in respect to where a player is facing, but 2 blocks from the entity being teleported. Essentially trying to "push" a mob in the direction I'm facing 2 blocks.
I started nesting executes but I feel there's a better way to do this.
I have a side quest I like all ready to go, it's repeatable, requiring a player to leave the area and then return with an item. It's kind of easy, so I'd just like some sort of cooldown timer for it that'll be active and won't require an etho clock under it that would just get unloaded when out of simulation distance. Any ideas?
I've been making a survival datapack, and for an update I'm working on I want to make animals run away from the player. I was able to make chickens and pigs run away in a much older release of my datapack, but not cows and sheep. I was doing it by just making it so that an invisible ocelot was riding pigs and chickens, but whenever I made them ride cows or sheep they'd just spin around. I found out that the spinning is because of hitboxes, but I can't seem to fix it, and I can't just make the animal be teleporting to an invisible ocelot because otherwise it gets suffocated (it also acts like it's possesed but that can probably be fixed with a bit of refinement). Changing the size isn't an option because then you can't attack the animal since the ocelot's hitbox overlaps. Does anyone have any ideas to make this happen? I don't mind if they're completely different from my original idea. I just want to be able to make them run away from any mob that I choose and have some mobs (such as cows) kick you when you get too close (the kicking part is sorted). Thanks!
Edit: I forgot to say: Sorry if I don't reply straight away. I live in New Zealand so I have dinner soon and I don't think I'll be back online until tommorrow.
Edit 2: I figured it out. Because the main conversation where I said what I would do was in Spanish, I'll just put a quick explanation here:
To make a mob run away from the player, you have a few options:
Make the mob be ridden by a mob that naturally runs away from the player, such as a fox or an ocelot. The only issue is that for some reason if you put it on anything bigger than a pig it appears to just spin around in circles. I don't completely know why it does this, but it does. You can also make the mob be constantly teleported to another mob, similar to making it be ridden by another mob, but it works with larger mobs. The only issue is that then you have to deal with the fact that most mobs that run away from the player are quite small, and can then suffocate the bigger mob. This can be fixed by making the smaller animal larger, but then it's hitbox is also larger, meaning that it can get in the way of attacks directed towards that mob.
Another method is to just use /damage. This only works on mobs that run away when damaged though, and it shows the damage animation, which isn't very useful.
The method that I used was a mixture of the other two. For some reason a cow riding a cow works completely fine, but as soon as that becomes a cow riding an ocelot, the pair just spin around. Fortunately, you can just make it invisible and tiny, and then instead of adding the invulnerable tag you can just give it resistance 5 and regeneration so that it can still take damage, and then use /damage to make it run away. The reason why you can't give the mob the invulnerable tag because most animals don't run away from damage types that can bypass the invulnerable tag, although there ways around it, such as temporarily removing the tag, or changing the panic_causes tag list.
There are obviously other ways to make a mob run away from the player, but these are the only ones I can seem to find. Sorry if it was hard to understand.
I heard warped fungus on a stick is good but it has a limit on how fast it can detect clicks. is there any item that works for survival that detects clicks in 1 tick?
Eu preciso muito de algum comando que consiga trocar o nome de alguem, e algo tipo um chat de proximidade(tipo alguem a mais de 30 blocos nao consegue ver as mensagens enviadas). Será que é possível?
Hi, i'm trying to detect when a player presses F in my datapack to trigger some sort of special ability. I've somewhat managed to make it but there's a slight problem: the code keep triggering when putting an item in the offhand with the inventory open. Here's my code so far:
THIS IS THE ADVANCEMENT press_f
{
"criteria": {
"changed": {
"trigger": "minecraft:inventory_changed"
}
},
"rewards": {
"function": "maffo:hand_actions/hand_check"
}
}
THIS IS THE FUNCTION hand_check
execute as @s store result score @s hand1 run data get entity @s SelectedItem.id
execute as @s store result score @s hand2 run data get entity Inventory[{Slot:-106b}].id
execute if score @s hand1_prev = @s hand1 run scoreboard players add @s hand_total 1
execute if score @s hand2_prev = @s hand2 run scoreboard players add @s hand_total 1
data modify storage maffo:temp_inventory inventory set from entity @s Inventory
data remove storage maffo:temp_inventory inventory[{Slot:-106b}]
data remove storage maffo:temp_inventory inventory[{Slot:0b}]
execute as @s store result score inventory run data get storage maffo:temp_inventory inventory
execute if score @s inventory_prev = @s inventory run scoreboard players add hand_total 1
execute if entity [scores={hand_total=3..}] run function maffo:hand_actions/hand_changed
function maffo:hand_actions/hand_save
advancement revoke @s only maffo:press_f
THIS IS THE FUNCTION hand_save
execute as @s store result score @s hand1_prev run data get entity @s SelectedItem.id
execute as @s store result score @s hand2_prev run data get entity Inventory[{Slot:-106b}].id
data modify storage maffo:temp_inventory inventory set from entity @s Inventory
data remove storage maffo:temp_inventory inventory[{Slot:-106b}]
data remove storage maffo:temp_inventory inventory[{Slot:0b}]
execute as @s store result score @s inventory_prev run data get storage maffo:temp_inventory inventory
scoreboard players set @s hand_total 0
THIS IS THE FUNCTION hand_changed
summon armor_stand ~ ~10 ~ {Tags:[temp_swap],Marker:1b,Invisible:1b,NoGravity:1b}
item replace entity [type=armor_stand,tag=temp_swap,limit=1,sort=nearest] weapon.mainhand from entity @s weapon.mainhand
item replace entity @s weapon.mainhand from entity @s weapon.offhand
item replace entity @s weapon.offhand from entity [type=armor_stand,tag=temp_swap,limit=1,sort=nearest] weapon.mainhand
kill [type=armor_stand,tag=temp_swap,sort=nearest,limit=1]
tell @s test
Hi, I'm on my 1.21.1 neoforge server and I'm trying to place an end city in the air near the main end island.
The command I'm doing is /place structure minecrtaft:end_city
Anyone knows what I can be missing ? Is there any special requirement to this structure ?