#How to make Iron ore drop 3d iron ore block instead of 2d raw iron item

1 messages · Page 1 of 1 (latest)

remote crest
#

Is something like this even possible?

midnight epoch
#

Yes

remote crest
#

How exactly would I be able to do this? I’m trying to make the ore block drop instead of the raw iron like it used to back then

#

Should’ve specified I’m trying to mainly make this happen on survival mode

midnight epoch
#

Do you want to do this by script, by commands?

remote crest
#

I’m really sorry I should have alllsoo mentioned that I’ve never done something like this before

But I’m guessing script?

earnest lichen
# remote crest I’m really sorry I should have alllsoo mentioned that I’ve never done something ...

The easiest way (outside of Silk Touch enchant) is to change the block loot to drop the new item instead (using a lower, possibly negative, priority where applicable).

This can also be achieved via hooking into the Block Break event as the trigger as well, but that option is more computationally expensive, because it is still looking up the old loot table, whereas just changing the Loot Tables directly is much better for the processing.

remote crest
earnest lichen
#

https://wiki.bedrock.dev/guide/format-version#resource-pack

Animation Controllers: 1.10.0 ⭐
Animations: 1.10.0 ⭐
Attachable: 1.10.0 ⭐
Blocks Catalog: 1.20.40 ⭐
Client Entity: 1.10.0 ⭐
Fog Settings: 1.16.100 ⭐
Geometry: 1.16.0
Particle Effect: 1.10.0 ⭐
Render Controllers: 1.10.0 ⭐
Sound Definitions: 1.20.20 ⭐

https://wiki.bedrock.dev/guide/format-version#behavior-pack

Entity: 1.21.60
Item: 1.21.30 ⭐
Recipe: 1.21.60
Spawn Rules: 1.17.0 ⭐
Trade Table: 1.18.10
#

Beyond that, you will want to look into how to create custom blocks (also available on that same site), and then you might want to look up the Molang documentation on the Microsoft Minecraft website.

remote crest
#

Should’ve also mentioned I also wanted to do this for 1.18 and not exactly the recent version of Bedrock my bad…..

remote crest
lethal nexus
#

I think commands are different for this in 1.18 and you’ll have to find an old tutorial but basically save a block of raw iron in a structure block then do /execute at @e[name=“raw iron”] run structure load nameofstructureyoumadeabove ~~~

#

And then in a chain command block above just kill all raw iron

#

the name= part might be slightly different you have to make it the name of the raw iron item when it’s dropped and i forget if that’s capitalized

#

The execute command might’ve worked differently back then

remote crest
#

/execute @e [name="Raw_Iron"] ~~~ structure load mystructure:RawErn 44 62 71 0_Degrees none false true

#

This which I know prob won’t make sense but at that point I was just messing around with stuff

#

Gave me a no targets matched selector message instead

lethal nexus
#

Yea you need to find a old tutorial on how to use execute because they updated it a lot

#

Also why are you loading the structure at specific coordinates? Idk how to specify the execute is happening at the entity in an older version but don’t think that’s necessary

remote crest
#

Oh idk I was just trying anything atp

#

Would I have to type something specific to make it spawn anywhere it’s used?

#

Also I’ll continue to try finding a tutorial for 1.18 bedrock cuz I haven’t had much luck yet lol

remote crest
#

Yeah I’m not sure if I can find a tutorial that exactly explains what I’d need for the the whole [name=] part unfortunately…..

lethal nexus
#

The name is either “Raw Iron” or “raw iron” I believe

lethal nexus
remote crest
#

Oh it’s just personal preference really

#

Also checked I think it’s raw_iron?? Not too sure

remote crest
#

So I got the load structure command working by itself

But for some reason whenever I try it with the execute command no matter what I type or do it just won’t do anything??

midnight epoch
#

Ok just do this:

Repeat command block:
tag @a[hasitem={item=raw_iron}, c=1] add raw_iron_tag

Connected chain command block:
clear @a[tag=raw_iron_tag, c=1] raw_iron 0 1

Connected chain command block:
give @a[tag=raw_iron_tag, c=1] iron_ore 1

Connected chain command block:
tag @a[tag=raw_iron_tag, c=1] remove raw_iron_tag

#

It will just change the raw iron by iron ore

#

In inventories

remote crest
remote crest
#

Oh right

#

Gonna try looking up a tutorial for that cuz I have even less of an idea on what to do there lol

#

Thanks!

lethal nexus
# remote crest Oh cool that one worked for inventory! Now would there be any way to make iron...

This is a tutorial on how you use the execute command and showing examples on how it can be used! Any questions please ask!
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Commands: (Wither Banning)
execute @e[type=wither] ~~~ testfor @p[r=12]
execute @e[type=wither] ~~~ kick @p for greifing
tp @e[type=wither] 300...

▶ Play video
#

think this is what youre looking for

#

i think you could do something like /execute @e[type=item,name=raw_iron] (then your structure load command)

remote crest
#

Don’t understand why though since that’s exactly how it’s written

lethal nexus
#

What’s the error

#

It’s entirely possible it’s not raw_iron

#

I’ll ask somewhere else

remote crest
#

Something like

#

syntax error: unexpected “”: at “=raw_iron]>><<“

lethal nexus
#

It’s missing something after that that it expects I suppose

remote crest
#

What could it be? I’ve tried a couple things but haven’t gotten any different results

surreal zenith
#

I wouldn't try to select items by name, the name depends on the host's language

remote crest
#

Atp I feel I could be doing something wrong? cuz this is all i ever get.....

#

syntax errors

lethal nexus
#

There is no raw iron entity

#

It should be like type=item,name=raw_iron although again idk if it’s called raw iron

lethal nexus
#

I have confirmed the name on the ground is “Raw Iron”

remote crest
lethal nexus
#

Are you sure you can’t update to like 1.20

remote crest
#

It spawns/loads like 5 full stacks of iron ore voided