Skip to content

Add summon command - #291

Closed
scifi6546 wants to merge 3 commits into
feather-rs:mainfrom
scifi6546:develop
Closed

scifi6546 wants to merge 3 commits into
feather-rs:mainfrom
scifi6546:develop

Conversation

@scifi6546

Copy link
Copy Markdown

I added the spawn command. In order to create it I added a new argument type for entities and a function that maps from entity id strings used in the summon command to the entity creation function.

@scifi6546 scifi6546 changed the title Add spawn command Add summon command Aug 3, 2020
Comment thread server/entity/src/mob.rs Outdated
"minecraft:zombie" => Some(hostile::zombie::create),
"minecraft:zombie_horse" => None,
"minecraft:zombie_pigman" => Some(neutral::zombie_pigman::create),
"minecraft:zombie_villigar" => Some(hostile::zombie_villager::create),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

villigar -> villager

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow how did I not notice that. I changed the spelling.

Comment thread server/entity/src/mob.rs
"minecraft:zombie_horse" => None,
"minecraft:zombie_pigman" => Some(neutral::zombie_pigman::create),
"minecraft:zombie_villigar" => Some(hostile::zombie_villager::create),
"minecraft:zombie_villagar" => Some(hostile::zombie_villager::create),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is still a typo, it's villager ^^

Base automatically changed from develop to main February 27, 2021 01:51
@Defman Defman closed this Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants